X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftools%2Ftdbtorture.c;h=3547d8038b7893749f83185c3c639058edea161a;hp=aadc8afa3aa8e42cd7f03c1257dbe986c67625e1;hb=68e848993dca98439f73dfaf6641f3f85ef89597;hpb=41391dd9a73e1aa8bb8193cf6335542c703f20e9 diff --git a/ccan/tdb/tools/tdbtorture.c b/ccan/tdb/tools/tdbtorture.c index aadc8afa..3547d803 100644 --- a/ccan/tdb/tools/tdbtorture.c +++ b/ccan/tdb/tools/tdbtorture.c @@ -20,15 +20,15 @@ #define DELETE_PROB 8 #define STORE_PROB 4 #define APPEND_PROB 6 -#if 0 #define TRANSACTION_PROB 10 #define TRANSACTION_PREPARE_PROB 2 +#if 0 #define LOCKSTORE_PROB 5 +#endif #define TRAVERSE_PROB 20 #define TRAVERSE_READ_PROB 20 #define TRAVERSE_MOD_PROB 100 #define TRAVERSE_ABORT_PROB 500 -#endif #define CULL_PROB 100 #define KEYLEN 3 #define DATALEN 100 @@ -144,6 +144,8 @@ static void addrec_db(void) in_transaction--; goto next; } + +#if 0 if (in_traverse == 0 && in_transaction && random() % TRANSACTION_PROB == 0) { if (tdb_transaction_cancel(db) != 0) { fatal("tdb_transaction_cancel failed"); @@ -152,6 +154,7 @@ static void addrec_db(void) goto next; } #endif +#endif #if REOPEN_PROB if (in_traverse == 0 && in_transaction == 0 && random() % REOPEN_PROB == 0) {