From 6f00c7f061f5f5b578c3dd13ad5c5f91b1da80ae Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 8 Jul 2022 19:07:31 -0700 Subject: [PATCH] comments --- weed/mount/weedfs_rename.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/mount/weedfs_rename.go b/weed/mount/weedfs_rename.go index ef4ff55c2..5fcd85215 100644 --- a/weed/mount/weedfs_rename.go +++ b/weed/mount/weedfs_rename.go @@ -238,10 +238,11 @@ func (wfs *WFS) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR if fh := wfs.fhmap.inode2fh[sourceInode]; foundFh && fh.entry != nil { fh.entry.Name = newName } + // invalidate attr and data wfs.fuseServer.InodeNotify(sourceInode, 0, -1) } - // invalidate attr and data if targetInode != 0 { + // invalidate attr and data wfs.fuseServer.InodeNotify(targetInode, 0, -1) }