]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: restructure OSDMonitor::check_failures() loop
authorKefu Chai <kchai@redhat.com>
Thu, 11 Mar 2021 10:28:18 +0000 (18:28 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 19 Mar 2021 16:04:32 +0000 (00:04 +0800)
commit6e512b2f1e228eb808d6bff1e5c159c4d16667ef
tree1a9237aab32f3b9efd98e97bdb3a020c2142fffd
parentd42815d5e9c4ba781ea710ef299cb9319f7fc3e6
mon/OSDMonitor: restructure OSDMonitor::check_failures() loop

will add a trim failures call in the loop, which mutates failure_info,
while we are still iterating this map. so have to restructure the loop
a little bit.

Fixes: https://tracker.ceph.com/issues/47380
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc