mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
uClient: _rename doesn't remove nodes from cache.
Sage says this is unnecessary.
This commit is contained in:
parent
80912bb6a7
commit
7e19b03591
@ -4967,13 +4967,7 @@ int Client::_rename(Inode *fromdir, const char *fromname, Inode *todir, const ch
|
||||
req->set_filepath2(from);
|
||||
|
||||
int res = make_request(req, uid, gid);
|
||||
if (res == 0) {
|
||||
// remove from local cache
|
||||
if (fromdir->dir->dentries.count(fromname)) {
|
||||
Dentry *dn = fromdir->dir->dentries[fromname];
|
||||
unlink(dn);
|
||||
}
|
||||
}
|
||||
|
||||
dout(10) << "rename result is " << res << dendl;
|
||||
|
||||
// renamed item from our cache
|
||||
|
Loading…
Reference in New Issue
Block a user