summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-10-12 12:03:42 +0200
committerMichael Adam <obnox@samba.org>2011-10-12 22:45:52 +0200
commit8a3aa56202758dac195a8d3bee446269863221ab (patch)
tree562c82a6b7e504a842d3afdb9d232a5fc2060b3c
parentc6481f4f2491ba76f2da7fdb67bc2264b5b83f12 (diff)
downloadsamba-8a3aa56202758dac195a8d3bee446269863221ab.tar.gz
samba-8a3aa56202758dac195a8d3bee446269863221ab.tar.bz2
samba-8a3aa56202758dac195a8d3bee446269863221ab.zip
s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverse
Brown paperbag. This omitted the "== 0" hand hence skipped all keys of the same length as __db_sequence_number__ but different from it...
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index ca43dc1b58..cdb3d73c55 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1249,7 +1249,7 @@ static int traverse_persistent_callback(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DAT
* This is used for persistent transactions internally.
*/
if (kbuf.dsize == strlen(CTDB_DB_SEQNUM_KEY) + 1 &&
- strcmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY))
+ strcmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY) == 0)
{
goto done;
}