]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: call maybe_export_pin on all fetched dirfrags
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 5 May 2017 23:10:53 +0000 (19:10 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 5 May 2017 23:11:33 +0000 (19:11 -0400)
If the dirfrag is pinned to the current mds, it needs to be made into an aux
subtree.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CInode.cc

index 50ff269f67e96186b33a7a1155f5db615d81b502..678ebaf5f2a5991b401f33ff6a6daa95e33bc131 100644 (file)
@@ -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;
 }