From 4103463ad20b23d5c0a4ca0a296fc8f951e473c2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 2 Jun 2015 22:16:17 +0200 Subject: [PATCH] ctdb-recoverd/vacuum: slightly reorder the vacuum fetch loop Reads more naturally this way, imho. Signed-off-by: Michael Adam Reviewed-by: Amitay Isaacs --- ctdb/server/ctdb_recoverd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index 51dcdcd3943..e5a4a401e15 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -1080,13 +1080,14 @@ static void vacuum_fetch_next(struct vacuum_info *v) bool ok; r = v->r; - v->r = (struct ctdb_rec_data *)(r->length + (uint8_t *)r); - v->recs->count--; ok = vacuum_fetch_process_one(v->ctdb_db, v->rec->ctdb->pnn, r); if (!ok) { break; } + + v->r = (struct ctdb_rec_data *)(r->length + (uint8_t *)r); + v->recs->count--; } talloc_free(v); -- 2.47.3