]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/pg: drop unnecessary update_heartbeat_peers()
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 24 Mar 2016 12:01:16 +0000 (20:01 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 25 Mar 2016 14:14:19 +0000 (22:14 +0800)
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 <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index 1f985361cbd3cd8ac0fb0226ced025b3411835af..e5d076a72842d6a370f79244e106e87b90369542 100644 (file)
@@ -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 >();
 }