From c61d1a167974ffd7788253373ec0920cd802805b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 Sep 2001 01:57:02 +0000 Subject: fixed compilation of tdbtorture (This used to be commit 2f44756233e2655856f003bb15c3898118756b98) --- source3/tdb/tdbtorture.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/tdb') diff --git a/source3/tdb/tdbtorture.c b/source3/tdb/tdbtorture.c index 4ee36fa857..c76446b4fd 100644 --- a/source3/tdb/tdbtorture.c +++ b/source3/tdb/tdbtorture.c @@ -108,6 +108,7 @@ static void addrec_db(void) #if DELETE_PROB if (random() % DELETE_PROB == 0) { tdb_delete(db, key); + goto next; } #endif @@ -116,6 +117,7 @@ static void addrec_db(void) if (tdb_store(db, key, data, TDB_REPLACE) != 0) { fatal("tdb_store failed"); } + goto next; } #endif @@ -128,18 +130,21 @@ static void addrec_db(void) } if (data.dptr) free(data.dptr); tdb_chainunlock(db, lockkey); + goto next; } #endif #if TRAVERSE_PROB if (random() % TRAVERSE_PROB == 0) { tdb_traverse(db, cull_traverse, NULL); + goto next; } #endif data = tdb_fetch(db, key); if (data.dptr) free(data.dptr); +next: free(k); free(d); free(s); -- cgit