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 stats when a collection is deleted
Chris Lu56eb522b1369
diff --git a/weed/storage/store.go b/weed/storage/store.goindex f27f2412f1..6ff996a3c0 100644--- a/weed/storage/store.go+++ b/weed/storage/store.go@@ -250,6 +250,11 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {}if !deleteVolume {collectionVolumeSize[v.Collection] += volumeMessage.Size+ } else {+ collectionVolumeSize[v.Collection] -= volumeMessage.Size+ if collectionVolumeSize[v.Collection] <= 0 {+ delete(collectionVolumeSize, v.Collection)+ }}if _, exist := collectionVolumeReadOnlyCount[v.Collection]; !exist {