[PATCH] dbwrap_ctdb: open locally with TDB_VOLATILE if requested

Christof Schmitt cs at samba.org
Thu May 22 16:57:19 MDT 2014


>From 1f4f97260c80aa7d9ee9f9bd265bf0d6620d2152 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 17 Mar 2014 12:21:28 +0100
Subject: [PATCH] dbwrap_ctdb: open locally with TDB_VOLATILE if requested

Signed-off-by: Volker Lendecke <vl at samba.org>
Reviewed-by: Christof Schmitt <cs at samba.org>
---
 source3/lib/dbwrap/dbwrap_ctdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 7cf90ce..ca33c8f 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1616,7 +1616,7 @@ 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_flags &= TDB_SEQNUM|TDB_VOLATILE;
 
 	/* honor permissions if user has specified O_CREAT */
 	if (open_flags & O_CREAT) {
-- 
1.7.1



More information about the samba-technical mailing list