master: avoid creating too many volumes

fix https://github.com/chrislusf/seaweedfs/issues/2062
This commit is contained in:
Chris Lu
2021-05-11 10:05:31 -07:00
parent 4596e64710
commit d2d36a3f9d
4 changed files with 11 additions and 11 deletions

View File

@@ -34,8 +34,8 @@ type Topology struct {
Sequence sequence.Sequencer
chanFullVolumes chan *storage.VolumeInfo
chanCrowdedVolumes chan *storage.VolumeInfo
chanFullVolumes chan storage.VolumeInfo
chanCrowdedVolumes chan storage.VolumeInfo
Configuration *Configuration
@@ -57,8 +57,8 @@ func NewTopology(id string, seq sequence.Sequencer, volumeSizeLimit uint64, puls
t.Sequence = seq
t.chanFullVolumes = make(chan *storage.VolumeInfo)
t.chanCrowdedVolumes = make(chan *storage.VolumeInfo)
t.chanFullVolumes = make(chan storage.VolumeInfo)
t.chanCrowdedVolumes = make(chan storage.VolumeInfo)
t.Configuration = &Configuration{}