mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-02 20:27:49 +08:00
fix compilation
This commit is contained in:
parent
6f00c7f061
commit
3d0defa663
@ -235,7 +235,7 @@ func (wfs *WFS) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR
|
|||||||
|
|
||||||
sourceInode, targetInode := wfs.inodeToPath.MovePath(oldPath, newPath)
|
sourceInode, targetInode := wfs.inodeToPath.MovePath(oldPath, newPath)
|
||||||
if sourceInode != 0 {
|
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
|
fh.entry.Name = newName
|
||||||
}
|
}
|
||||||
// invalidate attr and data
|
// invalidate attr and data
|
||||||
|
Loading…
Reference in New Issue
Block a user