From 8a3aa56202758dac195a8d3bee446269863221ab Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 12 Oct 2011 12:03:42 +0200 Subject: 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... --- source3/lib/dbwrap/dbwrap_ctdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit