]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: subtree map should always reflect current hierarchy
authorSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 04:25:46 +0000 (21:25 -0700)
committerSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 04:28:01 +0000 (21:28 -0700)
Not projected!

src/mds/MDCache.cc

index 429efcafb40f8c20763222b0cc41c0a9e7a63049..44ed0698f0d76ac00f0f92ca6d5e7738f979c3b4 100644 (file)
@@ -987,7 +987,7 @@ CDir *MDCache::get_subtree_root(CDir *dir)
   while (true) {
     if (dir->is_subtree_root()) 
       return dir;
-    dir = dir->get_inode()->get_projected_parent_dn()->get_dir(); //get_parent_dir();
+    dir = dir->get_inode()->get_parent_dir();
     if (!dir) 
       return 0;             // none
   }