mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record in traverse
It did not compare the last charcter (usually '\0') Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Sep 28 16:54:59 CEST 2011 on sn-devel-104
This commit is contained in:
parent
f4fa725b95
commit
417c16e4e6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user