avoid changing inode
This commit is contained in:
@@ -114,7 +114,6 @@ func (dir *Dir) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR
|
|||||||
if existingHandle, found := dir.wfs.handles[inodeId]; found && existingHandle != nil {
|
if existingHandle, found := dir.wfs.handles[inodeId]; found && existingHandle != nil {
|
||||||
glog.V(4).Infof("opened file handle %s => %s", oldPath, newPath)
|
glog.V(4).Infof("opened file handle %s => %s", oldPath, newPath)
|
||||||
delete(dir.wfs.handles, inodeId)
|
delete(dir.wfs.handles, inodeId)
|
||||||
existingHandle.handle = newPath.AsInode()
|
|
||||||
existingHandle.f.entry.Name = newName
|
existingHandle.f.entry.Name = newName
|
||||||
dir.wfs.handles[newPath.AsInode()] = existingHandle
|
dir.wfs.handles[newPath.AsInode()] = existingHandle
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user