From d620b13c51fc69b509824177af32de55c89c2259 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 28 Oct 2013 16:03:25 -0700 Subject: [PATCH] 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 (cherry picked from commit ecddd12b01be120fba87f5ac60539f98f2c69a28) --- src/osd/ReplicatedPG.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index d3b2696b6bc94..c1af03de4c851 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -7448,7 +7448,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! } map > pushes; -- 2.39.5