File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -5130,13 +5130,18 @@ PeeringState::Backfilling::react(const DeferBackfill &c)
51305130 ps->state_clear (PG_STATE_BACKFILLING);
51315131 suspend_backfill ();
51325132
5133- pl->schedule_event_after (
5134- std::make_shared<PGPeeringEvent>(
5135- ps->get_osdmap_epoch (),
5136- ps->get_osdmap_epoch (),
5137- RequestBackfill ()),
5138- c.delay );
5139- return transit<NotBackfilling>();
5133+ if (ps->needs_backfill ()) {
5134+ pl->schedule_event_after (
5135+ std::make_shared<PGPeeringEvent>(
5136+ ps->get_osdmap_epoch (),
5137+ ps->get_osdmap_epoch (),
5138+ RequestBackfill ()),
5139+ c.delay );
5140+ return transit<NotBackfilling>();
5141+ } else {
5142+ // raced with MOSDPGBackfill::OP_BACKFILL_FINISH, ignore
5143+ return discard_event ();
5144+ }
51405145}
51415146
51425147boost::statechart::result
You can’t perform that action at this time.
0 commit comments