mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-29 23:05:34 +08:00
remove file handle locking for setattr
This commit is contained in:
parent
3db1642392
commit
cc34475012
@ -115,16 +115,6 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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() {
|
if req.Valid.Size() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user