git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa9d32
)
s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverse
author
Michael Adam
<obnox@samba.org>
Wed, 12 Oct 2011 10:03:42 +0000
(12:03 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 13 Oct 2011 15:24:35 +0000
(17:24 +0200)
source3/lib/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap_ctdb.c
b/source3/lib/dbwrap_ctdb.c
index 11a1a2b3d34eec8deddfd19e1c00e3adc395063b..2cb776a8215b0593f153b0fc59b9d6e72e1eff20 100644
(file)
--- a/
source3/lib/dbwrap_ctdb.c
+++ b/
source3/lib/dbwrap_ctdb.c
@@
-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;
}