ctdb-vacuum: reduce indentation in delete_queue_traverse
authorMichael Adam <obnox@samba.org>
Fri, 14 Feb 2014 14:30:08 +0000 (15:30 +0100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 6 Mar 2014 00:31:10 +0000 (11:31 +1100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_vacuum.c

index 061013d4a08a9df87490c8ba04d21b773322a423..12769402effec047e1d8d577f58f62ab3e2da1c3 100644 (file)
@@ -555,13 +555,14 @@ static int delete_queue_traverse(void *param, void *data)
                               "hash [0x%08x] from local data base db[%s].\n",
                               hash, ctdb_db->db_name));
                        vdata->fast_error++;
-               } else {
-                       DEBUG(DEBUG_DEBUG,
-                             (__location__ " Deleted record with key hash "
-                              "[0x%08x] from local data base db[%s].\n",
-                              hash, ctdb_db->db_name));
-                       vdata->fast_deleted++;
+                       goto done;
                }
+
+               DEBUG(DEBUG_DEBUG,
+                     (__location__ " Deleted record with key hash "
+                      "[0x%08x] from local data base db[%s].\n",
+                      hash, ctdb_db->db_name));
+               vdata->fast_deleted++;
        }
 
        goto done;