osd/OSDMonitor: drop redundant check of exists()

Which is aready included by the is_up() method.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2016-08-16 14:55:31 +08:00
parent 4a271f126e
commit 28dd2b06f8

View File

@ -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<int,utime_t>::const_iterator t = last_osd_report.find(i);