From: Patrick Donnelly Date: Fri, 5 May 2017 23:10:53 +0000 (-0400) Subject: mds: call maybe_export_pin on all fetched dirfrags X-Git-Tag: v12.0.3~38^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=048abc330ddf0c2ce3dfbc8287d7a8e94ae507b4;p=ceph.git mds: call maybe_export_pin on all fetched dirfrags If the dirfrag is pinned to the current mds, it needs to be made into an aux subtree. Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 50ff269f67e..678ebaf5f2a 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -655,12 +655,7 @@ CDir *CInode::add_dirfrag(CDir *dir) dir->get(CDir::PIN_STICKY); } - if (get_export_pin(false) != mdcache->mds->get_nodeid()) { - /* We don't need to look at parents export pins as that would be done when - * the parent's dirfrags are loaded. - */ - maybe_export_pin(); - } + maybe_export_pin(); return dir; }