From 02cba90db6c2a0e20be4afc187ed67516263fffa Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Thu, 26 Mar 2020 13:01:25 +0800 Subject: [PATCH] crimson/osd: save a lookup attempt in heartbeat::remove_down_peers() Signed-off-by: Yingxin Cheng --- src/crimson/osd/heartbeat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/osd/heartbeat.cc b/src/crimson/osd/heartbeat.cc index e91452c01db..a6e0c1c1039 100644 --- a/src/crimson/osd/heartbeat.cc +++ b/src/crimson/osd/heartbeat.cc @@ -137,7 +137,7 @@ Heartbeat::osds_t Heartbeat::remove_down_peers() auto osdmap = service.get_osdmap_service().get_map(); if (!osdmap->is_up(osd)) { remove_peer(osd); - } else if (peers[osd].epoch < osdmap->get_epoch()) { + } else if (peer.epoch < osdmap->get_epoch()) { osds.push_back(osd); } } -- 2.39.5