dbwrap: enable mutexes by default for volatile TDBs
authorRalph Boehme <slow@samba.org>
Sun, 9 Jul 2017 14:23:20 +0000 (16:23 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 12 Jul 2017 07:01:18 +0000 (09:01 +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>
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, '/');