diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 4f5382cffce..2bb268ba43e 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -6775,6 +6775,10 @@ void ReplicatedPG::finish_promote(int r, CopyResults *results, simple_repop_submit(repop); osd->logger->inc(l_osd_tier_promote); + + assert(agent_state); + if (agent_state->is_idle()) + agent_choose_mode(); } void ReplicatedPG::cancel_copy(CopyOpRef cop, bool requeue)