]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: _rename_prepaer should only journal dest if auth for it
authorGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 3 Jun 2011 16:46:48 +0000 (09:46 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Fri, 3 Jun 2011 16:48:58 +0000 (09:48 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/mds/Server.cc

index c1eceff53351c19b567863da10e0521d86c4c788..ccccf8f0126f21a103099fe6f5c66440b65dbb33 100644 (file)
@@ -5185,7 +5185,7 @@ void Server::_rename_prepare(MDRequest *mdr,
 
   // add it all to the metablob
   // target inode
-  if (!linkmerge) {
+  if (!linkmerge && destdn->is_auth()) {
     if (destdnl->is_primary()) {
       // project snaprealm, too
       bufferlist snapbl;