Browse Source

fix compilation

random_access_file
Chris Lu 4 years ago
parent
commit
090612492c
  1. 4
      weed/filesys/dir_rename.go

4
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

Loading…
Cancel
Save