Skip to content

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.

do not delete collection metrics when unmount a volume

chrislud38456dc06d3
diff --git a/weed/storage/store.go b/weed/storage/store.go
index e34f0d79a6..3e2c8bcca3 100644
--- a/weed/storage/store.go
+++ b/weed/storage/store.go
@@ -535,7 +535,6 @@ func (s *Store) UnmountVolume(i needle.VolumeId) error {
err := location.UnloadVolume(i)
if err == nil {
glog.V(0).Infof("UnmountVolume %d", i)
- stats.DeleteCollectionMetrics(v.Collection)
s.DeletedVolumesChan <- message
return nil
} else if err == ErrVolumeNotFound {