]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedPG: replace backfill_pos with last_backfill_started
authorSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 22:53:24 +0000 (15:53 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 28 Oct 2013 23:03:59 +0000 (16:03 -0700)
commit9ec35d5ccf6a86c380865c7fc96017a1f502560a
treedd65b4d2a55fedebf666fd96dc6a53e7e3beab56
parent8774f03d39b061bc1e811ee8af9d49108f0443c1
ReplicatedPG: replace backfill_pos with last_backfill_started

last_backfill_started reflects what pinfo.last_backfill will be
once all currently outstanding backfills complete.  backfill_pos
was tricky since we couldn't correctly inialize it without
doing the first backfill scan pair.

In recover_backfill, we rescan from last_backfill_started rather
than from backfill_pos.  This ensures that we capture all clones
created between last_backfill_started and what previously had been
backfill_pos without special handling in make_writeable.  The main
downside is that we will tend to "rescan" last_backfill_started.

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