]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: We use transactions for CLEAR_IF_FIRST db
authorVolker Lendecke <vl@samba.org>
Fri, 11 Jan 2013 16:29:01 +0000 (17:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 8 Feb 2013 11:58:12 +0000 (12:58 +0100)
This does not work in the ctdb case

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/torture/test_idmap_tdb_common.c

index d08166017a92858752b1ff7281159b2b95e474c6..5681eefe70b6ce7932fd551a8b03668b3cb9a08a 100644 (file)
@@ -89,7 +89,7 @@ static bool open_db(struct idmap_tdb_common_context *ctx)
                return false;
        }
 
-       ctx->db = db_open(ctx, db_path, 0, TDB_DEFAULT | TDB_CLEAR_IF_FIRST,
+       ctx->db = db_open(ctx, db_path, 0, TDB_DEFAULT,
                          O_RDWR | O_CREAT, 0600,
                          DBWRAP_LOCK_ORDER_1);