]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix seg fault in expire_recursive 45097/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 09:53:05 +0000 (15:23 +0530)
commitd3983863d4a624a922151416e8e8086bd58d3c39
treef9ecf331784edcdf056483937defa95048a5ca7f
parent60fd24fa136ad38e7a7b03dc4bb38120be74c8de
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