[PATCH 4/7] dbwrap: allow transactions on non-persistent non-clustered dbs.

Rusty Russell rusty at rustcorp.com.au
Tue Mar 26 19:37:21 MDT 2013


Otherwise we can't use dbwrap for schannel_store:

	transactions not supported on non-persistent database /home/rusty/samba/st/dc/private/schannel_store.tdb

Note that the source3/lib/dbwrap/dbwrap_ctdb.c transaction start will
return an error with the same message anyway.

Cc: Michael Adam <obnox at samba.org>
Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
---
 lib/dbwrap/dbwrap.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/dbwrap/dbwrap.c b/lib/dbwrap/dbwrap.c
index f0b7a9a..15eb239 100644
--- a/lib/dbwrap/dbwrap.c
+++ b/lib/dbwrap/dbwrap.c
@@ -452,11 +452,6 @@ int dbwrap_get_seqnum(struct db_context *db)
 
 int dbwrap_transaction_start(struct db_context *db)
 {
-	if (!db->persistent) {
-		DEBUG(1, ("transactions not supported on non-persistent "
-			  "database %s\n", db->name));
-		return -1;
-	}
 	return db->transaction_start(db);
 }
 
-- 
1.7.10.4



More information about the samba-technical mailing list