tdb2: increment seqnum on tdb_wipe_all in tdb1 backend.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:07 +0000 (15:31 +0930)
ccan/tdb2/tdb1_tdb.c

index 0e3cc13caba9f9ab4093de2c0325a34012b74715..98f830cc9a81d0c18f78cfa5e5aae6e4b44ca0f4 100644 (file)
@@ -786,6 +786,7 @@ int tdb1_wipe_all(struct tdb_context *tdb)
                }
        }
 
+       tdb1_increment_seqnum_nonblock(tdb);
        tdb_unlockall(tdb);
        return 0;