summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-07 16:39:16 +0100
committerMichael Adam <obnox@samba.org>2012-11-29 17:42:20 +0100
commit6e0259d8ec4698384be803e0dc75f3ed2eef4ab1 (patch)
tree51fb5b3e68ab1a07ef4c4e3ddbae589877e62eb3 /source3
parentb206b5274878bbf47cd19db0fccc025a1ac16784 (diff)
downloadsamba-6e0259d8ec4698384be803e0dc75f3ed2eef4ab1.tar.gz
samba-6e0259d8ec4698384be803e0dc75f3ed2eef4ab1.tar.bz2
samba-6e0259d8ec4698384be803e0dc75f3ed2eef4ab1.zip
s3: Slightly simplify db_ctdb_transaction_commit
Avoid an unnecessary "else". Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 5be4bf7c6a..d3524047d1 100644
--- 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",