]> 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>
Wed, 8 Oct 2014 22:55:17 +0000 (15:55 -0700)
commiteac9632229365cea22f966e1543685eb6a4974f9
tree2dc9f97815b60dffbf57ee92228d9624776f0e60
parent3c889cd118419ef5174245d3d4fa3b922e7c4339
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>
(cherry picked from commit 4139e75d63b0503dbb7fea8036044eda5e8b7cf1)
src/osd/ReplicatedPG.cc