git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b206b52
)
s3: Slightly simplify db_ctdb_transaction_commit
author
Volker Lendecke
<vl@samba.org>
Wed, 7 Nov 2012 15:39:16 +0000
(16:39 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 29 Nov 2012 16:42:20 +0000
(17:42 +0100)
Avoid an unnecessary "else".
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/dbwrap/dbwrap_ctdb.c
patch
|
blob
|
history
diff --git
a/source3/lib/dbwrap/dbwrap_ctdb.c
b/source3/lib/dbwrap/dbwrap_ctdb.c
index 5be4bf7c6aa0fb08214e728c6a8f7bbed18139a0..d3524047d15e26d9354db8164122b0a1a7747657 100644
(file)
--- a/
source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/
source3/lib/dbwrap/dbwrap_ctdb.c
@@
-836,7
+836,8
@@
again:
if (new_seqnum == old_seqnum) {
/* Recovery prevented all our changes: retry. */
goto again;
- } else if (new_seqnum != (old_seqnum + 1)) {
+ }
+ if (new_seqnum != (old_seqnum + 1)) {
DEBUG(0, (__location__ " ERROR: new_seqnum[%lu] != "
"old_seqnum[%lu] + (0 or 1) after failed "
"TRANS3_COMMIT - this should not happen!\n",