mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 05:27:23 +08:00
fix compilation
This commit is contained in:
@@ -64,8 +64,8 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
|
|||||||
// fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
|
// fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
|
||||||
dir.wfs.fsNodeCache.Move(oldPath, newPath)
|
dir.wfs.fsNodeCache.Move(oldPath, newPath)
|
||||||
|
|
||||||
wfs.handlesLock.Lock()
|
dir.wfs.handlesLock.Lock()
|
||||||
defer wfs.handlesLock.Unlock()
|
defer dir.wfs.handlesLock.Unlock()
|
||||||
delete(dir.wfs.handles, oldPath.AsInode())
|
delete(dir.wfs.handles, oldPath.AsInode())
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user