summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-27 01:57:02 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-27 01:57:02 +0000
commitc61d1a167974ffd7788253373ec0920cd802805b (patch)
tree5f4a0a8f41697833c5dadfb0603f4858c89f6523 /source3/tdb
parent2c4d1d39b148b8587deb8fca2db4113354165989 (diff)
downloadsamba-c61d1a167974ffd7788253373ec0920cd802805b.tar.gz
samba-c61d1a167974ffd7788253373ec0920cd802805b.tar.bz2
samba-c61d1a167974ffd7788253373ec0920cd802805b.zip
fixed compilation of tdbtorture
(This used to be commit 2f44756233e2655856f003bb15c3898118756b98)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbtorture.c5
1 files changed, 5 insertions, 0 deletions
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);