dbwrap: enable mutexes by default for volatile TDBs
authorRalph Boehme <slow@samba.org>
Sun, 9 Jul 2017 14:23:20 +0000 (16:23 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 24 Jul 2017 20:00:38 +0000 (22:00 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12891

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit a70be43246ab74f0a2bbe245ab31f24460b70547)

source3/lib/dbwrap/dbwrap_open.c

index 55e0adb7b7198cfacb4c025a3804f42c8029a050..801ebcbde4ca3b56c24d4a4604f0117d23c03a29 100644 (file)
@@ -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, '/');