osd: Don't set backfill_toofull in RemoteReservationRevoked path

We shouldn't set backfill_toofull when a revoke occurs in the non-toofull
case.

Fixes: https://tracker.ceph.com/issues/41255

Signed-off-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
David Zafman 2019-08-23 08:52:39 -07:00
parent 6b0f3ce4cb
commit fa569ecfec

View File

@ -4553,7 +4553,6 @@ void PeeringState::WaitRemoteBackfillReserved::retry()
}
ps->state_clear(PG_STATE_BACKFILL_WAIT);
ps->state_set(PG_STATE_BACKFILL_TOOFULL);
pl->publish_stats_to_osd();
pl->schedule_event_after(
@ -4567,6 +4566,8 @@ void PeeringState::WaitRemoteBackfillReserved::retry()
boost::statechart::result
PeeringState::WaitRemoteBackfillReserved::react(const RemoteReservationRejected &evt)
{
DECLARE_LOCALS;
ps->state_set(PG_STATE_BACKFILL_TOOFULL);
retry();
return transit<NotBackfilling>();
}