diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-08-16 16:47:03 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-08-16 10:47:41 +0200 |
commit | ee720fc19cebf9108711429dfe25ccaf192e2c7e (patch) | |
tree | 980bfa6784afe97e9f530c8d040f7a9ddd46d4b6 /lib/tdb/common | |
parent | 689f42af29572d1d9e135c0d20e07fb690a6d2d4 (diff) | |
download | samba-ee720fc19cebf9108711429dfe25ccaf192e2c7e.tar.gz samba-ee720fc19cebf9108711429dfe25ccaf192e2c7e.tar.bz2 samba-ee720fc19cebf9108711429dfe25ccaf192e2c7e.zip |
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 <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
Diffstat (limited to 'lib/tdb/common')
-rw-r--r-- | lib/tdb/common/tdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index 66be555a06..3a3c99c553 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; |