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 <xie.xingguo@zte.com.cn>
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;