From 15851569991008f2892d0dc765e7a0091d09d48b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 6 Nov 2014 11:59:34 +0100 Subject: [PATCH] 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. Signed-off-by: Volker Lendecke --- source3/lib/dbwrap/dbwrap_ctdb.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index 0b30d9f..a52d598 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -1616,7 +1616,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) { -- 1.7.1