From: xie xingguo Date: Mon, 10 Sep 2018 02:15:23 +0000 (+0800) Subject: osd/OSD: clear ping_history on heartbeat_reset X-Git-Tag: v14.0.1~341^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24006%2Fhead;p=ceph.git osd/OSD: clear ping_history on heartbeat_reset Because the old connections are gone, and hence we should not leave behind a long list of obsolete ping_history there, which is misleading... Signed-off-by: xie xingguo --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2498c5ecb62f..53494a050b6d 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4995,6 +4995,7 @@ bool OSD::heartbeat_reset(Connection *con) p->second.con_front = newcon.second.get(); p->second.con_front->set_priv(s); } + p->second.ping_history.clear(); } else { dout(10) << "heartbeat_reset failed hb con " << con << " for osd." << p->second.peer << ", raced with osdmap update, closing out peer" << dendl;