fix compilation

This commit is contained in:
Chris Lu 2020-08-13 00:07:56 -07:00
parent d43129d27f
commit 090612492c

View file

@ -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