mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add back handles lock
This commit is contained in:
parent
f735d579d3
commit
d43129d27f
|
@ -63,6 +63,9 @@ 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()
|
||||||
|
defer wfs.handlesLock.Unlock()
|
||||||
delete(dir.wfs.handles, oldPath.AsInode())
|
delete(dir.wfs.handles, oldPath.AsInode())
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue