Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix typo

chrislu8679870008ed
diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.go
index 4c8b103312..8fc06bdb6e 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 89f9097f6e..5fa439a0b3 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))