mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
fix typo
This commit is contained in:
parent
22d5d2ea96
commit
8679870008
@ -42,7 +42,7 @@ func (ms *MasterServer) ProcessGrowRequest() {
|
|||||||
if !ms.Topo.IsLeader() {
|
if !ms.Topo.IsLeader() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, vl := range ms.Topo.ListVolumeLyauts() {
|
for _, vl := range ms.Topo.ListVolumeLayouts() {
|
||||||
if !vl.HasGrowRequest() && vl.ShouldGrowVolumes(&topology.VolumeGrowOption{}) {
|
if !vl.HasGrowRequest() && vl.ShouldGrowVolumes(&topology.VolumeGrowOption{}) {
|
||||||
vl.AddGrowRequest()
|
vl.AddGrowRequest()
|
||||||
ms.volumeGrowthRequestChan <- &topology.VolumeGrowRequest{
|
ms.volumeGrowthRequestChan <- &topology.VolumeGrowRequest{
|
||||||
|
@ -42,7 +42,7 @@ func (t *Topology) ToInfo() (info TopologyInfo) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Topology) ListVolumeLyauts() (volumeLayouts []*VolumeLayout) {
|
func (t *Topology) ListVolumeLayouts() (volumeLayouts []*VolumeLayout) {
|
||||||
for _, col := range t.collectionMap.Items() {
|
for _, col := range t.collectionMap.Items() {
|
||||||
for _, volumeLayout := range col.(*Collection).storageType2VolumeLayout.Items() {
|
for _, volumeLayout := range col.(*Collection).storageType2VolumeLayout.Items() {
|
||||||
volumeLayouts = append(volumeLayouts, volumeLayout.(*VolumeLayout))
|
volumeLayouts = append(volumeLayouts, volumeLayout.(*VolumeLayout))
|
||||||
|
Loading…
Reference in New Issue
Block a user