From: Ralph Boehme Date: Sun, 9 Jul 2017 14:23:20 +0000 (+0200) Subject: dbwrap: enable mutexes by default for volatile TDBs X-Git-Tag: samba-4.7.0rc3~18 X-Git-Url: http://git.samba.org/samba.git/?p=jarrpa%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=5afede8d715b3b42329ac53c4887e3cd50de0922 dbwrap: enable mutexes by default for volatile TDBs Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891 Signed-off-by: Ralph Boehme Reviewed-by: Amitay Isaacs (cherry picked from commit a70be43246ab74f0a2bbe245ab31f24460b70547) --- diff --git a/source3/lib/dbwrap/dbwrap_open.c b/source3/lib/dbwrap/dbwrap_open.c index 55e0adb7b71..801ebcbde4c 100644 --- a/source3/lib/dbwrap/dbwrap_open.c +++ b/source3/lib/dbwrap/dbwrap_open.c @@ -98,7 +98,7 @@ struct db_context *db_open(TALLOC_CTX *mem_ctx, if (tdb_flags & TDB_CLEAR_IF_FIRST) { const char *base; - bool try_mutex = false; + bool try_mutex = true; bool require_mutex = false; base = strrchr_m(name, '/');