diff options
author | Christof Schmitt <cs@samba.org> | 2014-11-17 14:59:34 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-11-26 19:04:11 +0100 |
commit | 068f9e26486fbcd36c109df9ada50c9384ba52c5 (patch) | |
tree | a0a8ca47a05b5dac5de8177b7532752757c5f504 | |
parent | f80bbba2870a80ed421a1a222e430df86028e7c7 (diff) | |
download | samba-068f9e26486fbcd36c109df9ada50c9384ba52c5.tar.gz |
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 <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
-rw-r--r-- | source3/lib/gencache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index 94e4939d47f..baedf854236 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -127,7 +127,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, |