ReplicatedPG: add empty stat when we remove an object in recover_backfill

Subsequent updates to that object need to have their stats added
to the backfill info stats atomically with the last_backfill
update.

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-10-28 16:03:25 -07:00
parent 9ec35d5ccf
commit ecddd12b01

View File

@ -8106,7 +8106,11 @@ int ReplicatedPG::recover_backfill(
i != to_remove.end();
++i) {
handle.reset_tp_timeout();
// ordered before any subsequent updates
send_remove_op(i->first, i->second, backfill_target);
pending_backfill_updates[i->first]; // add empty stat!
}
PGBackend::RecoveryHandle *h = pgbackend->open_recovery_op();