]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix intermediate snapped inode updates
authorSage Weil <sage@newdream.net>
Thu, 19 Aug 2010 23:21:18 +0000 (16:21 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 Aug 2010 23:21:18 +0000 (16:21 -0700)
Pass head inode to pick_inode_snap!

src/mds/Locker.cc

index 4e84393c9c455aadd84d647cbbd15582608c8d71..cf8f38b409912e8d16eb290239e6551ca052ae6a 100644 (file)
@@ -1875,7 +1875,7 @@ void Locker::handle_client_caps(MClientCaps *m)
        dout(10) << " updating intermediate snapped inode " << *in << dendl;
        _do_cap_update(in, NULL, m->get_dirty(), follows, m, NULL);
       }
-      in = mdcache->pick_inode_snap(in, in->last);
+      in = mdcache->pick_inode_snap(head_in, in->last);
     }
  
     // head inode, and cap