]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix seg fault in expire_recursive 45099/head
author胡玮文 <huww98@outlook.com>
Thu, 6 Jan 2022 07:43:29 +0000 (15:43 +0800)
committerVenky Shankar <vshankar@redhat.com>
Mon, 21 Feb 2022 10:00:35 +0000 (15:30 +0530)
commit6ca9a21fb2b24bccddf0bfe0bd38aaa7dac210fc
tree6771f602d673ae4e1fc4ca47d3343ee0e9b43d99
parentc382aba671282bc40c3148dcbac7b38d953fb334
mds: fix seg fault in expire_recursive

Range-based for should not be used when we are altering the container.
Use iterator explicitly instead.

Fixes: https://tracker.ceph.com/issues/53805
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit d48a2cf7e2481cf9758f2934464ec6d9c35d898b)
src/mds/MDCache.cc