Browse Source

fix compilation

pull/3293/head
chrislu 2 years ago
parent
commit
3d0defa663
  1. 2
      weed/mount/weedfs_rename.go

2
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

Loading…
Cancel
Save