diff options
| author | chrislu <chris.lu@gmail.com> | 2022-07-08 19:16:58 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-07-08 19:16:58 -0700 |
| commit | 3d0defa66301fd159ad93f699cccb2ebc1b4b4fe (patch) | |
| tree | 511be411ed966d2e7d784210b72d2b19dc710dfa | |
| parent | 6f00c7f061f5f5b578c3dd13ad5c5f91b1da80ae (diff) | |
| download | seaweedfs-3d0defa66301fd159ad93f699cccb2ebc1b4b4fe.tar.xz seaweedfs-3d0defa66301fd159ad93f699cccb2ebc1b4b4fe.zip | |
fix compilation
| -rw-r--r-- | weed/mount/weedfs_rename.go | 2 |
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 |
