summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-08-16 16:47:03 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-08-16 10:47:41 +0200
commitee720fc19cebf9108711429dfe25ccaf192e2c7e (patch)
tree980bfa6784afe97e9f530c8d040f7a9ddd46d4b6 /lib
parent689f42af29572d1d9e135c0d20e07fb690a6d2d4 (diff)
downloadsamba-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')
-rw-r--r--lib/tdb/common/tdb.c2
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;