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.

set file handle reader to nil

Chris Lu4211601eab26
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go
index b70d90f6c4..c273eec8a1 100644
--- a/weed/filesys/filehandle.go
+++ b/weed/filesys/filehandle.go
@@ -205,6 +205,7 @@ func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) err
if closer, ok := fh.f.reader.(io.Closer); ok {
closer.Close()
}
+ fh.f.reader = nil
}
return nil