Commit 04b2feef authored by Rusty Russell's avatar Rusty Russell

tdb2: enable transactions in tdbtorture

parent 554f3856
......@@ -20,8 +20,8 @@
#define DELETE_PROB 8
#define STORE_PROB 4
#define APPEND_PROB 6
//#define TRANSACTION_PROB 10
//#define TRANSACTION_PREPARE_PROB 2
#define TRANSACTION_PROB 10
#define TRANSACTION_PREPARE_PROB 2
#define LOCKSTORE_PROB 5
#define TRAVERSE_PROB 20
#define TRAVERSE_READ_PROB 20
......@@ -171,9 +171,7 @@ static void addrec_db(void)
}
if (in_traverse == 0 && in_transaction && random() % TRANSACTION_PROB == 0) {
if (tdb_transaction_cancel(db) != 0) {
fatal("tdb_transaction_cancel failed");
}
tdb_transaction_cancel(db);
in_transaction--;
goto next;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment