Browse Source

do not delete collection metrics when unmount a volume

fix https://github.com/seaweedfs/seaweedfs/issues/6139
pull/6156/head
chrislu 2 months ago
parent
commit
d38456dc06
  1. 1
      weed/storage/store.go

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

Loading…
Cancel
Save