From: Samuel Just Date: Mon, 28 Oct 2013 23:03:25 +0000 (-0700) Subject: ReplicatedPG: add empty stat when we remove an object in recover_backfill X-Git-Tag: v0.72-rc1~7^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ecddd12b01be120fba87f5ac60539f98f2c69a28;p=ceph.git 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 --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index c5ef3c7e22d9..082fd55b8455 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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();