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>
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()) {