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
memory needle map mark size to be TombstoneFileSize
Chris Lu5668ed798dc2
diff --git a/weed/storage/needle/compact_map.go b/weed/storage/needle/compact_map.goindex 4816e00987..bca6984071 100644--- a/weed/storage/needle/compact_map.go+++ b/weed/storage/needle/compact_map.go@@ -76,9 +76,9 @@ func (cs *CompactSection) Delete(key NeedleId) uint32 {cs.Lock()ret := uint32(0)if i := cs.binarySearchValues(skey); i >= 0 {- if cs.values[i].Size > 0 {+ if cs.values[i].Size > 0 && cs.values[i].Size != TombstoneFileSize {ret = cs.values[i].Size- cs.values[i].Size = 0+ cs.values[i].Size = TombstoneFileSize}}if v, found := cs.overflow.findOverflowEntry(skey); found {