mirror of
https://github.com/ceph/ceph
synced 2025-04-06 17:44:22 +00:00
Merge pull request #41516 from tchaikov/wip-47380
mon/OSDMonitor: drop stale failure_info even if can_mark_down() Reviewed-by: Josh Durgin <jdurgin@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
1c8ebd6bf3
@ -3181,8 +3181,9 @@ bool OSDMonitor::check_failures(utime_t now)
|
||||
auto p = failure_info.begin();
|
||||
while (p != failure_info.end()) {
|
||||
auto& [target_osd, fi] = *p;
|
||||
if (can_mark_down(target_osd)) {
|
||||
found_failure |= check_failure(now, target_osd, fi);
|
||||
if (can_mark_down(target_osd) &&
|
||||
check_failure(now, target_osd, fi)) {
|
||||
found_failure = true;
|
||||
++p;
|
||||
} else if (is_failure_stale(now, fi)) {
|
||||
dout(10) << " dropping stale failure_info for osd." << target_osd
|
||||
|
Loading…
Reference in New Issue
Block a user