mirror of
https://github.com/ceph/ceph
synced 2025-01-10 05:00:59 +00:00
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:
parent
4a271f126e
commit
28dd2b06f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user