s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverse
authorMichael Adam <obnox@samba.org>
Wed, 12 Oct 2011 10:03:42 +0000 (12:03 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 13 Oct 2011 15:24:35 +0000 (17:24 +0200)
source3/lib/dbwrap_ctdb.c

index 11a1a2b3d34eec8deddfd19e1c00e3adc395063b..2cb776a8215b0593f153b0fc59b9d6e72e1eff20 100644 (file)
@@ -1228,7 +1228,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;
        }