aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/topology.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-05-11 10:05:31 -0700
committerChris Lu <chris.lu@gmail.com>2021-05-11 10:05:31 -0700
commitd2d36a3f9dd39b772abe1a78a056d9ea5309ec7e (patch)
treea249b3f837d80bd792dfb932435a0819220f5241 /weed/topology/topology.go
parent4596e647100d23d36e96335d0022eec846eaf16e (diff)
downloadseaweedfs-d2d36a3f9dd39b772abe1a78a056d9ea5309ec7e.tar.xz
seaweedfs-d2d36a3f9dd39b772abe1a78a056d9ea5309ec7e.zip
master: avoid creating too many volumes
fix https://github.com/chrislusf/seaweedfs/issues/2062
Diffstat (limited to 'weed/topology/topology.go')
-rw-r--r--weed/topology/topology.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 3932e3fbb..d704a5636 100644
--- a/weed/topology/topology.go
+++ b/weed/topology/topology.go
@@ -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{}