ctdb:vacuum: stop vacuuming when the first delete_list traverse fails.
authorMichael Adam <obnox@samba.org>
Wed, 23 Jul 2014 11:34:03 +0000 (13:34 +0200)
committerAmitay Isaacs <amitay@samba.org>
Wed, 23 Jul 2014 13:11:15 +0000 (15:11 +0200)
This indirect caller of delete_marshall_traverse was missed
in fa4a81c86b6073b2563b090aa657d8e8b63c1276
which lets failure of the second travers fail the vacuum run.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_vacuum.c

index be3ee1e8b4c618232ee6b822ef96c19187327294..c3054bfbbff4cf691a20d5f68b45676966c88ebf 100644 (file)
@@ -898,6 +898,7 @@ static void ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
        if (ret != 0) {
                DEBUG(DEBUG_ERR, (__location__ " Error traversing the "
                      "delete list for first marshalling.\n"));
+               goto done;
        }
 
        indata = ctdb_marshall_finish(recs->records);