From 090612492cba03243ed86b8d47ad705f26d9451d Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 13 Aug 2020 00:07:56 -0700 Subject: [PATCH] fix compilation --- weed/filesys/dir_rename.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index 573706b21..c2ff6f407 100644 --- a/weed/filesys/dir_rename.go +++ b/weed/filesys/dir_rename.go @@ -64,8 +64,8 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector // fmt.Printf("rename path: %v => %v\n", oldPath, newPath) dir.wfs.fsNodeCache.Move(oldPath, newPath) - wfs.handlesLock.Lock() - defer wfs.handlesLock.Unlock() + dir.wfs.handlesLock.Lock() + defer dir.wfs.handlesLock.Unlock() delete(dir.wfs.handles, oldPath.AsInode()) return err