From: Sage Weil Date: Wed, 31 Mar 2010 04:25:46 +0000 (-0700) Subject: mds: subtree map should always reflect current hierarchy X-Git-Tag: v0.20~146^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7293dd5b73828fb125ad80b28ea5ecbc895c1bb3;p=ceph.git mds: subtree map should always reflect current hierarchy Not projected! --- diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 429efcafb40f..44ed0698f0d7 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -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 }