From be3ebd8fe56419aad837832bbb0873ae16ce09d1 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Fri, 25 Mar 2016 10:09:29 +0800 Subject: [PATCH] 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 --- src/osd/PG.cc | 3 --- 1 file changed, 3 deletions(-) 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) {