From 091a3aa86ec74cfaf54e5fdb3e0141acc310587c Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Mon, 17 Nov 2014 14:59:34 -0700 Subject: [PATCH] gencache: Request mutexes for gencache_notrans.tdb The check in tdb_wrap ensures that mutexes are only used on systems that properly support them. Signed-off-by: Christof Schmitt Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 71f77f42b0d..ec96f5ae49c 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -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, -- 2.11.4.GIT