]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gencache: Request mutexes for gencache_notrans.tdb
authorChristof Schmitt <cs@samba.org>
Mon, 17 Nov 2014 21:59:34 +0000 (14:59 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sat, 24 Jan 2015 21:16:10 +0000 (22:16 +0100)
The check in tdb_wrap ensures that mutexes are only used on systems that
properly support them.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Nov 26 19:04:11 CET 2014 on sn-devel-104
(cherry picked from commit 068f9e26486fbcd36c109df9ada50c9384ba52c5)

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11032

source3/lib/gencache.c

index 71f77f42b0d8ff22913e9b73492633ac75327518..ec96f5ae49cdaf47f2f61ecc394cf0c8b77595a9 100644 (file)
@@ -119,7 +119,8 @@ static bool gencache_init(void)
                                      TDB_CLEAR_IF_FIRST|
                                      TDB_INCOMPATIBLE_HASH|
                                      TDB_SEQNUM|
-                                     TDB_NOSYNC,
+                                     TDB_NOSYNC|
+                                     TDB_MUTEX_LOCKING,
                                      open_flags, 0644);
        if (cache_notrans == NULL) {
                DEBUG(5, ("Opening %s failed: %s\n", cache_fname,