1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-07 09:37:49 +02:00

remove file handle locking for setattr

This commit is contained in:
Chris Lu 2021-06-02 11:44:12 -07:00
parent 3db1642392
commit cc34475012

View file

@ -115,16 +115,6 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
if err != nil {
return err
}
if file.isOpen > 0 {
file.wfs.handlesLock.Lock()
fh := file.wfs.handles[file.Id()]
file.wfs.handlesLock.Unlock()
if fh != nil {
fh.Lock()
defer fh.Unlock()
}
}
if req.Valid.Size() {