From: Andrew Bartlett Date: Sun, 3 Jun 2018 06:35:15 +0000 (+1200) Subject: pyldb-samba: Use the same smb.conf variable name as the C wrapper users for LDB_FLG_N... X-Git-Tag: tevent-0.9.37~428 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c3b1bc64c642bbb28571621c8ee2e37d8d6556a;p=thirdparty%2Fsamba.git pyldb-samba: Use the same smb.conf variable name as the C wrapper users for LDB_FLG_NOSYNC This was never noticed as most wrappers on make test run with TDB_NO_FSYNC However ldb_mdb has not been told to use this (naturally) and so we rely on the smb.conf setting to not force an fsync(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=13461 Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- diff --git a/python/samba/__init__.py b/python/samba/__init__.py index 20c7db2bc6c..7b3c6538771 100644 --- a/python/samba/__init__.py +++ b/python/samba/__init__.py @@ -105,7 +105,7 @@ class Ldb(_Ldb): # Allow admins to force non-sync ldb for all databases if lp is not None: - nosync_p = lp.get("nosync", "ldb") + nosync_p = lp.get("ldb:nosync") if nosync_p is not None and nosync_p: flags |= ldb.FLG_NOSYNC