]> git.samba.org - mat/samba.git/commitdiff
tdb: increment sequence number in tdb_wipe_all().
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Aug 2011 07:17:03 +0000 (16:47 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Aug 2011 08:47:41 +0000 (10:47 +0200)
TDB2 testing revealed that tdb1 doesn't do this.  It's minor, but fix it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Tue Aug 16 10:47:41 CEST 2011 on sn-devel-104

lib/tdb/common/tdb.c

index 66be555a067aa5c2db3d8a3671c215acaf07ba56..3a3c99c553f1ba01f824a313325d90d22030295b 100644 (file)
@@ -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;