diff options
| author | chrislu <chris.lu@gmail.com> | 2024-10-22 00:44:52 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-10-22 00:44:52 -0700 |
| commit | d38456dc06d354d5c395519fb2f8185b2456a82e (patch) | |
| tree | b7c2e534fcbecae5b3ca34ee4462fe55ec9841fc | |
| parent | 6c7824c813d6184d894817d9073249066072cee9 (diff) | |
| download | seaweedfs-d38456dc06d354d5c395519fb2f8185b2456a82e.tar.xz seaweedfs-d38456dc06d354d5c395519fb2f8185b2456a82e.zip | |
do not delete collection metrics when unmount a volume
fix https://github.com/seaweedfs/seaweedfs/issues/6139
| -rw-r--r-- | weed/storage/store.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/weed/storage/store.go b/weed/storage/store.go index e34f0d79a..3e2c8bcca 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 { |
