summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-11-06 11:59:34 +0100
committerStefan Metzmacher <metze@samba.org>2014-11-16 12:13:54 +0100
commit1106ede280938d05325baa146bd524aa3568deaf (patch)
tree630097e13822f969626ac465f2a223c7cb9ad597 /source3
parent07d03e277757510b6c1b142ca9cee0b1b755b7b6 (diff)
downloadsamba-1106ede280938d05325baa146bd524aa3568deaf.tar.gz
samba-1106ede280938d05325baa146bd524aa3568deaf.tar.xz
samba-1106ede280938d05325baa146bd524aa3568deaf.zip
dbwrap_ctdb: Pass on mutex flags to tdb_open
Without this, ctdb can create a tdb file with mutex activated, but the local tdb_open will not open the tdb due to strict flags checks whether mutexes are possible. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10922 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sun Nov 16 12:13:54 CET 2014 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 2aee435aab..e6dcc0e987 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1607,7 +1607,8 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
result->lock_order = lock_order;
/* only pass through specific flags */
- tdb_flags &= TDB_SEQNUM|TDB_VOLATILE;
+ tdb_flags &= TDB_SEQNUM|TDB_VOLATILE|
+ TDB_MUTEX_LOCKING|TDB_CLEAR_IF_FIRST;
/* honor permissions if user has specified O_CREAT */
if (open_flags & O_CREAT) {