1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

ctdb-recoverd/vacuum: slightly reorder the vacuum fetch loop

Reads more naturally this way, imho.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Michael Adam 2015-06-02 22:16:17 +02:00
parent a1c941be6f
commit 4103463ad2

View File

@ -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);