mds: fix intermediate snapped inode updates

Pass head inode to pick_inode_snap!
This commit is contained in:
Sage Weil 2010-08-19 16:21:18 -07:00
parent 3b5a53f01b
commit 84e835f1e6

View 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