From: xie xingguo Date: Thu, 24 Mar 2016 12:01:16 +0000 (+0800) Subject: osd/pg: drop unnecessary update_heartbeat_peers() X-Git-Tag: v10.1.1~98^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81d692922b201b9585c9647a01e63013907a4532;p=ceph.git osd/pg: drop unnecessary update_heartbeat_peers() The proc_replica_info() method will do the same job in a smarter way, so the succeeding call to update_heartbeat_peers() is unnecessary and cost expensive. Signed-off-by: xie xingguo --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 1f985361cbd..e5d076a7284 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -5629,7 +5629,6 @@ boost::statechart::result PG::RecoveryState::Initial::react(const MNotifyRec& no PG *pg = context< RecoveryMachine >().pg; pg->proc_replica_info( notify.from, notify.notify.info, notify.notify.epoch_sent); - pg->update_heartbeat_peers(); pg->set_last_peering_reset(); return transit< Primary >(); }