]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: ensure dirfrags are fetched once
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 9 Dec 2020 20:56:16 +0000 (12:56 -0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 16 Dec 2020 01:18:04 +0000 (09:18 +0800)
commit3c14b5b4a77e87b540f668999a8759df0bd0d01a
treea785355dedb2a3c3ec7b381c8b3edd06dbb8cabe
parentfc9ed61f82842ab2da292e9819fa53c7931cd7cd
mds: ensure dirfrags are fetched once

In case the directory was merged but the stale sub directories
maybe still kept in the loaded_anchor_map, then it will add the
sub directores' parent frag CDir, the merged CDir, into the leaves
vector for more than once.

Fixes: https://tracker.ceph.com/issues/48517
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/OpenFileTable.cc