Browse Source

fix typo

pull/5957/head
chrislu 4 months ago
parent
commit
8679870008
  1. 2
      weed/server/master_grpc_server_volume.go
  2. 2
      weed/topology/topology_info.go

2
weed/server/master_grpc_server_volume.go

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

2
weed/topology/topology_info.go

@ -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…
Cancel
Save