aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_rename.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mount/weedfs_rename.go')
-rw-r--r--weed/mount/weedfs_rename.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mount/weedfs_rename.go b/weed/mount/weedfs_rename.go
index 5fcd85215..0c7de0bbb 100644
--- a/weed/mount/weedfs_rename.go
+++ b/weed/mount/weedfs_rename.go
@@ -235,7 +235,7 @@ func (wfs *WFS) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR
sourceInode, targetInode := wfs.inodeToPath.MovePath(oldPath, newPath)
if sourceInode != 0 {
- if fh := wfs.fhmap.inode2fh[sourceInode]; foundFh && fh.entry != nil {
+ if fh, foundFh := wfs.fhmap.inode2fh[sourceInode]; foundFh && fh.entry != nil {
fh.entry.Name = newName
}
// invalidate attr and data