diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e5d076a7284..e7974df77a0 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6388,9 +6388,6 @@ PG::RecoveryState::WaitRemoteRecoveryReserved::react(const RemoteRecoveryReserve if (remote_recovery_reservation_it != context< Active >().remote_shards_to_reserve_recovery.end()) { assert(*remote_recovery_reservation_it != pg->pg_whoami); - } - - if (remote_recovery_reservation_it != context< Active >().remote_shards_to_reserve_recovery.end()) { ConnectionRef con = pg->osd->get_con_osd_cluster( remote_recovery_reservation_it->osd, pg->get_osdmap()->get_epoch()); if (con) {