s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record...
[kai/samba.git] / source3 / lib / dbwrap / dbwrap_ctdb.c
index cdb3d73c55788b8e521ab035d6adba9fb5d9676f..4c5cd64da042efaeeabbf96d0d8e66018ede49e9 100644 (file)
@@ -1361,8 +1361,7 @@ static int traverse_persistent_callback_read(TDB_CONTEXT *tdb, TDB_DATA kbuf, TD
         * This is used for persistent transactions internally.
         */
        if (kbuf.dsize == strlen(CTDB_DB_SEQNUM_KEY) + 1 &&
-           strncmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY,
-                   strlen(CTDB_DB_SEQNUM_KEY)) == 0)
+           strcmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY) == 0)
        {
                return 0;
        }