]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix add_replica_dir to use is_base() helper for adjusting subtree auth
authorSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 20:58:03 +0000 (13:58 -0700)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 20:58:03 +0000 (13:58 -0700)
src/mds/MDCache.cc

index 57a3d6aba02c1757d7de33e9f2aa46d734ab67bd..0c97da16773fe11e91a4910cb19f4edea43d0baf 100644 (file)
@@ -7816,8 +7816,7 @@ CDir *MDCache::add_replica_dir(bufferlist::iterator& p, CInode *diri, int from,
     // is this a dir_auth delegation boundary?
     if (from != diri->authority().first ||
        diri->is_ambiguous_auth() ||
-       diri->ino() == MDS_INO_ROOT ||
-       MDS_INO_IS_STRAY(diri->ino()))
+       diri->is_base())
       adjust_subtree_auth(dir, from);
     
     dout(7) << "add_replica_dir added " << *dir << " nonce " << dir->replica_nonce << dendl;