From ee720fc19cebf9108711429dfe25ccaf192e2c7e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 16 Aug 2011 16:47:03 +0930 Subject: [PATCH] tdb: increment sequence number in tdb_wipe_all(). TDB2 testing revealed that tdb1 doesn't do this. It's minor, but fix it. Signed-off-by: Rusty Russell Autobuild-User: Rusty Russell Autobuild-Date: Tue Aug 16 10:47:41 CEST 2011 on sn-devel-104 --- lib/tdb/common/tdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index 66be555a067..3a3c99c553f 100644 --- a/lib/tdb/common/tdb.c +++ b/lib/tdb/common/tdb.c @@ -886,6 +886,8 @@ _PUBLIC_ int tdb_wipe_all(struct tdb_context *tdb) } } + tdb_increment_seqnum_nonblock(tdb); + if (tdb_unlockall(tdb) != 0) { TDB_LOG((tdb, TDB_DEBUG_FATAL,"tdb_wipe_all: failed to unlock\n")); goto failed; -- 2.11.4.GIT