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
avoid nil when closing an index
Chris Lu726edab05420
diff --git a/weed/storage/needle_map_sorted_file.go b/weed/storage/needle_map_sorted_file.goindex 3449ff9dca..662b905316 100644--- a/weed/storage/needle_map_sorted_file.go+++ b/weed/storage/needle_map_sorted_file.go@@ -94,8 +94,12 @@ func (m *SortedFileNeedleMap) Delete(key NeedleId, offset Offset) error {}func (m *SortedFileNeedleMap) Close() {- m.indexFile.Close()- m.dbFile.Close()+ if m.indexFile != nil {+ m.indexFile.Close()+ }+ if m.dbFile != nil {+ m.dbFile.Close()+ }}func (m *SortedFileNeedleMap) Destroy() error {