]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: rename: add missing pop_and_dirty_projected_inode calls
authorSage Weil <sage.weil@dreamhost.com>
Tue, 7 Jun 2011 20:21:46 +0000 (13:21 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 7 Jun 2011 20:24:38 +0000 (13:24 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/Server.cc

index 331ff8fb78d6bb0d51a68f981b5a2b24ac6c2a5c..c6b865083bd4dce5d1fcaa77a5e2538ebd4f2a55 100644 (file)
@@ -5364,8 +5364,11 @@ void Server::_rename_apply(MDRequest *mdr, CDentry *srcdn, CDentry *destdn, CDen
       if (destdn->is_auth())
        destdn->mark_dirty(mdr->more()->pvmap[destdn], mdr->ls);
       // in
+      if (in->is_auth())
+       in->pop_and_dirty_projected_inode(mdr->ls);
     } else {
       dout(10) << "merging remote onto primary link" << dendl;
+      oldin->pop_and_dirty_projected_inode(mdr->ls);
     }
   } else { // primary
     if (linkmerge) {