From: xie xingguo Date: Tue, 16 Aug 2016 06:55:31 +0000 (+0800) Subject: osd/OSDMonitor: drop redundant check of exists() X-Git-Tag: v11.0.1~422^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=28dd2b06f8604673eb74142163e7ffe40bfbcb84;p=ceph.git osd/OSDMonitor: drop redundant check of exists() Which is aready included by the is_up() method. Signed-off-by: xie xingguo --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index dd493a3856df..ea8a9fee6800 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2868,8 +2868,6 @@ void OSDMonitor::handle_osd_timeouts(const utime_t &now, for (int i=0; i < max_osd; ++i) { dout(30) << "handle_osd_timeouts: checking up on osd " << i << dendl; - if (!osdmap.exists(i)) - continue; if (!osdmap.is_up(i)) continue; const std::map::const_iterator t = last_osd_report.find(i);