]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: add empty stat when we remove an object in recover_backfill
authorSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 23:03:25 +0000 (16:03 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 23:10:09 +0000 (16:10 -0700)
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>
src/osd/ReplicatedPG.cc

index c5ef3c7e22d91ecdbd0d4e0c45e184e34e2c6285..082fd55b845576a527adfd7525a5398fa4dfa2f3 100644 (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();