diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_ctdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index d9fb48950c..84d7b2fc2f 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -1267,8 +1267,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 && - strncmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY, - strlen(CTDB_DB_SEQNUM_KEY)) == 0) + strcmp((const char*)kbuf.dptr, CTDB_DB_SEQNUM_KEY)) { goto done; } |