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
delete entry from file index also
[email protected]4c31b6d5334c
diff --git a/weed-fs/src/pkg/storage/needle_map.go b/weed-fs/src/pkg/storage/needle_map.goindex 19030be3fd..3cdcf63283 100644--- a/weed-fs/src/pkg/storage/needle_map.go+++ b/weed-fs/src/pkg/storage/needle_map.go@@ -43,9 +43,7 @@ func LoadNeedleMap(file *os.File) *NeedleMap {key := BytesToUint64(bytes[i : i+8])offset := BytesToUint32(bytes[i+8 : i+12])size := BytesToUint32(bytes[i+12 : i+16])- if offset > 0 {- nm.m[key] = &NeedleValue{Offset: offset, Size: size}- }+ nm.m[key] = &NeedleValue{Offset: offset, Size: size}, offset > 0}count, e = nm.indexFile.Read(bytes)}