From 1eae74ec64d62300c5454c100385531c07bad8d1 Mon Sep 17 00:00:00 2001 From: linbing Date: Thu, 8 Jun 2017 08:39:47 +0800 Subject: [PATCH] osd: when osd is not in failure_pending, we don't need to get osd inst from osdmap. Signed-off-by: linbing --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 72fe11542d0..922b070a707 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -5881,8 +5881,8 @@ void OSD::send_failures() utime_t now = ceph_clock_now(); while (!failure_queue.empty()) { int osd = failure_queue.begin()->first; - entity_inst_t i = osdmap->get_inst(osd); if (!failure_pending.count(osd)) { + entity_inst_t i = osdmap->get_inst(osd); int failed_for = (int)(double)(now - failure_queue.begin()->second); monc->send_mon_message(new MOSDFailure(monc->get_fsid(), i, failed_for, osdmap->get_epoch())); -- 2.47.3