diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.go index 4c8b10331..8fc06bdb6 100644 --- a/weed/server/master_grpc_server_volume.go +++ b/weed/server/master_grpc_server_volume.go @@ -42,7 +42,7 @@ func (ms *MasterServer) ProcessGrowRequest() { if !ms.Topo.IsLeader() { continue } - for _, vl := range ms.Topo.ListVolumeLyauts() { + for _, vl := range ms.Topo.ListVolumeLayouts() { if !vl.HasGrowRequest() && vl.ShouldGrowVolumes(&topology.VolumeGrowOption{}) { vl.AddGrowRequest() ms.volumeGrowthRequestChan <- &topology.VolumeGrowRequest{ diff --git a/weed/topology/topology_info.go b/weed/topology/topology_info.go index 89f9097f6..5fa439a0b 100644 --- a/weed/topology/topology_info.go +++ b/weed/topology/topology_info.go @@ -42,7 +42,7 @@ func (t *Topology) ToInfo() (info TopologyInfo) { return } -func (t *Topology) ListVolumeLyauts() (volumeLayouts []*VolumeLayout) { +func (t *Topology) ListVolumeLayouts() (volumeLayouts []*VolumeLayout) { for _, col := range t.collectionMap.Items() { for _, volumeLayout := range col.(*Collection).storageType2VolumeLayout.Items() { volumeLayouts = append(volumeLayouts, volumeLayout.(*VolumeLayout))