]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix dir projection on truncate
authorSage Weil <sage@newdream.net>
Wed, 18 Jun 2008 18:43:31 +0000 (11:43 -0700)
committerSage Weil <sage@newdream.net>
Wed, 18 Jun 2008 18:43:31 +0000 (11:43 -0700)
src/mds/Server.cc

index 7c477d043d57acd0d428bade480fb8b017f880c6..82f9ae05952d907ed88641d1c1fa6f56bf01a16e 100644 (file)
@@ -4226,6 +4226,8 @@ public:
     in->inode.mtime = ctime;
     in->pop_and_dirty_projected_inode(mdr->ls);
 
+    mdr->apply();
+
     // notify any clients
     mds->locker->issue_truncate(in);
 
@@ -4435,6 +4437,8 @@ public:
     in->inode.mtime = ctime;
     in->pop_and_dirty_projected_inode(mdr->ls);
     
+    mdr->apply();
+
     // notify any clients
     mds->locker->issue_truncate(in);