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
release resources only when needed to
Chris Lu618b2f6829af
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex 1cbe120ac0..fa31cd81b0 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -167,9 +167,9 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) errif fh.f.isOpen <= 0 {fh.dirtyPages.releaseResource()fh.f.wfs.ReleaseHandle(fh.f.fullpath(), fuse.HandleID(fh.handle))+ fh.f.entryViewCache = nil+ fh.f.reader = nil}- fh.f.entryViewCache = nil- fh.f.reader = nilreturn nil}