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 <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
# 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