]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: recover_backfill: don't prematurely adjust last_backfill
authorSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 23:09:59 +0000 (16:09 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 23:10:16 +0000 (16:10 -0700)
commit4139e75d63b0503dbb7fea8036044eda5e8b7cf1
tree32f4500494edd8051195e07c88037e072a17bec5
parentecddd12b01be120fba87f5ac60539f98f2c69a28
ReplicatedPG: recover_backfill: don't prematurely adjust last_backfill

We can't adjust last_backfill to object x until x has been fully
backfilled.  pending_backfill_updates contains all those backfills
started, but which have not yet been reflected in pinfo.last_update.
backfills_in_flight contains those backfills which have not yet
completed.  Thus, we can adjust last_update to the largest entry
in pending_backfill_updates not in backfills_in_flight.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc