From 4c0804ad023ae258d2943e5563f66421d9490830 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 10 Sep 2018 10:15:23 +0800 Subject: [PATCH] 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 --- src/osd/OSD.cc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3