git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
689f42a
)
tdb: increment sequence number in tdb_wipe_all().
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 16 Aug 2011 07:17:03 +0000
(16:47 +0930)
committer
Rusty 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
patch
|
blob
|
history
diff --git
a/lib/tdb/common/tdb.c
b/lib/tdb/common/tdb.c
index 66be555a067aa5c2db3d8a3671c215acaf07ba56..3a3c99c553f1ba01f824a313325d90d22030295b 100644
(file)
--- 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;