1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-30 14:21:00 +02:00

avoid changing inode

This commit is contained in:
chrislu 2022-01-06 01:36:11 -08:00
parent 67b0645808
commit 3df8f96117

View file

@ -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 {
glog.V(4).Infof("opened file handle %s => %s", oldPath, newPath)
delete(dir.wfs.handles, inodeId)
existingHandle.handle = newPath.AsInode()
existingHandle.f.entry.Name = newName
dir.wfs.handles[newPath.AsInode()] = existingHandle
}