]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #59878 from xxhdx1985126/wip-68147
authorMatan Breizman <mbreizma@redhat.com>
Mon, 14 Oct 2024 07:02:21 +0000 (10:02 +0300)
committerGitHub <noreply@github.com>
Mon, 14 Oct 2024 07:02:21 +0000 (10:02 +0300)
crimson/osd/backfill_state: push peer pg infos' last_backfills only when all objects before them are backfilled

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
1  2 
src/crimson/osd/backfill_state.cc

index a62d0df24111d66f380822b2aafd668f0c1bb578,172c5e9cb0c1fe1ab40beed189adbfc0c169fa4c..52b39833f233ff6493260c20988d0edcbf228562
@@@ -578,9 -580,10 +579,11 @@@ void BackfillState::ProgressTracker::co
      peering_state().update_complete_backfill_object_stats(
        soid,
        *item.stats);
+     assert(soid > new_last_backfill);
+     new_last_backfill = soid;
    }
 -  if (Enqueuing::all_enqueued(peering_state(),
 +  if (may_push_to_max &&
 +      Enqueuing::all_enqueued(peering_state(),
                                backfill_state().backfill_info,
                                backfill_state().peer_backfill_info) &&
        tracked_objects_completed()) {