]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerNeha Ojha <nojha@redhat.com>
Thu, 29 Apr 2021 17:40:51 +0000 (17:40 +0000)
commitca3b52a375d516a23ca079b36fec9d6fc80a2027
tree1aa1ed8f1fa14cdebd4472b6cdeb4525223baecc
parent84fd33e7078da034c2b105b8c277d551ebbc31fd
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>
(cherry picked from commit 6e512b2f1e228eb808d6bff1e5c159c4d16667ef)
src/mon/OSDMonitor.cc