From 84ab6d003a9e0b0d5b9f67032d9769eb6b06c127 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 2 Jun 2015 21:27:16 +0200 Subject: [PATCH] ctdb-recoverd/vacuum: move two variables into scope. Signed-off-by: Michael Adam Reviewed-by: Amitay Isaacs --- ctdb/server/ctdb_recoverd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index 1b4ac50500a..e5cb7667390 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -1013,13 +1013,12 @@ static void vacuum_fetch_callback(struct ctdb_client_call_state *state) */ static void vacuum_fetch_next(struct vacuum_info *v) { - struct ctdb_call call; - struct ctdb_rec_data *r; - while (v->recs->count) { struct ctdb_client_call_state *state; TDB_DATA data; struct ctdb_ltdb_header *hdr; + struct ctdb_call call; + struct ctdb_rec_data *r; ZERO_STRUCT(call); call.call_id = CTDB_NULL_FUNC;