do not delete collection metrics when unmount a volume

fix https://github.com/seaweedfs/seaweedfs/issues/6139
This commit is contained in:
chrislu 2024-10-22 00:44:52 -07:00
parent 6c7824c813
commit d38456dc06

View File

@ -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 {