From 4640979b526b6dac69a6a0555bfce75fe0206dac Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 17 Dec 2012 13:07:21 +0100 Subject: [PATCH] vacuum: move variable into scope of use in ctdb_process_delete_list() Signed-off-by: Michael Adam Reviewed-By: Amitay Isaacs --- server/ctdb_vacuum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ctdb_vacuum.c b/server/ctdb_vacuum.c index 3b6e3262..1613a5a6 100644 --- a/server/ctdb_vacuum.c +++ b/server/ctdb_vacuum.c @@ -716,7 +716,6 @@ static int ctdb_process_delete_list(struct ctdb_db_context *ctdb_db, struct ctdb_context *ctdb = ctdb_db->ctdb; struct delete_records_list *recs; TDB_DATA indata, outdata; - int32_t res; struct ctdb_node_map *nodemap; uint32_t *active_nodes; int num_active_nodes; @@ -774,6 +773,7 @@ static int ctdb_process_delete_list(struct ctdb_db_context *ctdb_db, for (i = 0; i < num_active_nodes; i++) { struct ctdb_marshall_buffer *records; struct ctdb_rec_data *rec; + int32_t res; ret = ctdb_control(ctdb, active_nodes[i], 0, CTDB_CONTROL_TRY_DELETE_RECORDS, 0, -- 2.34.1