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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
mount: fix possible memory leak
Chris Lu6deb647a8f07
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex 4419888c46..57aa41b8a0 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -200,6 +200,8 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) errfh.Lock()defer fh.Unlock()+ fh.f.clearEntry()+if fh.f.isOpen <= 0 {glog.V(0).Infof("Release reset %s open count %d => %d", fh.f.Name, fh.f.isOpen, 0)fh.f.isOpen = 0@@ -211,7 +213,6 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) errfh.f.isOpen--fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))- fh.f.setReader(nil)}return nil