mirror of
https://github.com/ceph/ceph
synced 2025-01-02 09:02:34 +00:00
osd/pg: fold sanity check into one single "if" qualification
Just as "boost::statechart::result PG::RecoveryState::WaitRemoteBackfillReserved::react(const RemoteBackfillReserved &evt)" does. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
81d692922b
commit
be3ebd8fe5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user