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
fix build
Chris Luf811fd0903a8
diff --git a/weed/storage/needle_map_metric.go b/weed/storage/needle_map_metric.goindex 7cf48dd72d..0bdfdcedce 100644--- a/weed/storage/needle_map_metric.go+++ b/weed/storage/needle_map_metric.go@@ -93,10 +93,10 @@ func (mm *mapMetric) MaybeSetMaxFileKey(key NeedleId) {func newNeedleMapMetricFromIndexFile(r *os.File) (mm *mapMetric, err error) {mm = &mapMetric{}- var bf *boom.StableBloomFilter+ var bf *boom.BloomFilterbuf := make([]byte, NeedleIdSize)err = reverseWalkIndexFile(r, func(entryCount int64) {- bf = boom.NewDefaultStableBloomFilter(uint(entryCount), 0.001)+ bf = boom.NewBloomFilter(uint(entryCount), 0.001)}, func(key NeedleId, offset Offset, size Size) error {mm.MaybeSetMaxFileKey(key)@@ -105,9 +105,8 @@ func newNeedleMapMetricFromIndexFile(r *os.File) (mm *mapMetric, err error) {mm.FileByteCounter += uint64(size)}- if !bf.Test(buf) {+ if !bf.TestAndAdd(buf) {mm.FileCounter++- bf.Add(buf)} else {// deleted filemm.DeletionCounter++