]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't adjust subtree map in rename_prepare
authorSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 04:27:14 +0000 (21:27 -0700)
committerSage Weil <sage@newdream.net>
Wed, 31 Mar 2010 04:28:04 +0000 (21:28 -0700)
Not sure what the reasoning behind this was.

This code is from pre git history, and the git->subversion conversion
managed to make pretty git-blame unusable.  I doubt I really documented
what its purpose at that point was anyway.

src/mds/Server.cc

index cf33c147da33e8353c69ac5e1cf891edd8d0dea8..7ba37766dd2631fa035227150cc31aec9c78424d 100644 (file)
@@ -4553,16 +4553,6 @@ void Server::_rename_prepare(MDRequest *mdr,
   mdcache->journal_cow_dentry(mdr, metablob, srcdn, CEPH_NOSNAP, 0, srcdnl);
   metablob->add_null_dentry(srcdn, true);
 
-  // new subtree?
-  if (srcdnl->is_primary() &&
-      srcdnl->get_inode()->is_dir()) {
-    list<CDir*> ls;
-    srcdnl->get_inode()->get_nested_dirfrags(ls);
-    int auth = srcdn->authority().first;
-    for (list<CDir*>::iterator p = ls.begin(); p != ls.end(); ++p) 
-      mdcache->adjust_subtree_auth(*p, auth, auth, false);
-  }
-
   // do inode updates in journal, even if we aren't auth (hmm, is this necessary?)
   if (!silent) {
     if (ji && !pi) {