From 6e0259d8ec4698384be803e0dc75f3ed2eef4ab1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Nov 2012 16:39:16 +0100 Subject: [PATCH] s3: Slightly simplify db_ctdb_transaction_commit Avoid an unnecessary "else". Reviewed-by: Michael Adam --- source3/lib/dbwrap/dbwrap_ctdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index 5be4bf7c6aa..d3524047d15 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", -- 2.11.4.GIT