]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG::recover_backfill: update last_backfill to max() when backfill is complete
authorSamuel Just <sam.just@inktank.com>
Tue, 29 Oct 2013 06:05:30 +0000 (23:05 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 29 Oct 2013 15:26:57 +0000 (08:26 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 738b43494d2698cd062112b2e3238f3eb5b6f78f..ba6b7ecca71759cc04f553415df477f4fad17ad6 100644 (file)
@@ -8153,6 +8153,12 @@ int ReplicatedPG::recover_backfill(
   }
   assert(!pending_backfill_updates.empty() ||
         new_last_backfill == last_backfill_started);
+  if (pending_backfill_updates.empty() &&
+      backfill_pos.is_max()) {
+    assert(backfills_in_flight.empty());
+    new_last_backfill = backfill_pos;
+    last_backfill_started = backfill_pos;
+  }
   if (new_last_backfill > pinfo.last_backfill) {
     pinfo.last_backfill = new_last_backfill;
     epoch_t e = get_osdmap()->get_epoch();