From 81d692922b201b9585c9647a01e63013907a4532 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Thu, 24 Mar 2016 20:01:16 +0800 Subject: [PATCH] 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 --- src/osd/PG.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 1f985361cbd3c..e5d076a72842d 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 >(); } -- 2.39.5