Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

remove file handle locking for setattr

Chris Lucc3447501265
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index 8a5b619acb..c50ac0549d 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -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() {