mirror of
https://github.com/ceph/ceph
synced 2025-02-22 18:47:18 +00:00
mon: Fix infinite looping, if failed_notes is empty.
Reported-by: Henry C Chang <henry_c_chang@tcloudcomputing.com>
This commit is contained in:
parent
2e71037250
commit
2c5a3d99aa
@ -426,7 +426,8 @@ bool OSDMonitor::prepare_failure(MOSDFailure *m)
|
||||
}
|
||||
} else { //remove the report
|
||||
multimap<int, pair<int, int> >::iterator i = failed_notes.lower_bound(target_osd);
|
||||
while ((i->first == target_osd) && (i->second.first != reporter))
|
||||
while ((i->first == target_osd) && (i->second.first != reporter)
|
||||
&& i != failed_notes.end())
|
||||
++i;
|
||||
if (i->second.first != reporter)
|
||||
dout(0) << "got an OSD not-failed report from osd" << reporter
|
||||
|
Loading…
Reference in New Issue
Block a user