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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix typo
qiang.zeng06cb337b82fe
diff --git a/weed/topology/allocate_volume.go b/weed/topology/allocate_volume.goindex e1ae30c2d3..f21d0fc0a8 100644--- a/weed/topology/allocate_volume.go+++ b/weed/topology/allocate_volume.go@@ -17,7 +17,7 @@ func AllocateVolume(dn *DataNode, grpcDialOption grpc.DialOption, vid needle.Volreturn operation.WithVolumeServerClient(false, dn.ServerAddress(), grpcDialOption, func(client volume_server_pb.VolumeServerClient) error {- _, deleteErr := client.AllocateVolume(context.Background(), &volume_server_pb.AllocateVolumeRequest{+ _, allocateErr := client.AllocateVolume(context.Background(), &volume_server_pb.AllocateVolumeRequest{VolumeId: uint32(vid),Collection: option.Collection,Replication: option.ReplicaPlacement.String(),@@ -26,7 +26,7 @@ func AllocateVolume(dn *DataNode, grpcDialOption grpc.DialOption, vid needle.VolMemoryMapMaxSizeMb: option.MemoryMapMaxSizeMb,DiskType: string(option.DiskType),})- return deleteErr+ return allocateErr})}diff --git a/weed/topology/volume_growth.go b/weed/topology/volume_growth.goindex e2949848d1..7886c39989 100644--- a/weed/topology/volume_growth.go+++ b/weed/topology/volume_growth.go@@ -181,7 +181,7 @@ func (vg *VolumeGrowth) findEmptySlotsForOneVolume(topo *Topology, option *Volumreturn nil, rackErr}- //find main rack and other racks+ //find main server and other serversmainServer, otherServers, serverErr := mainRack.(*Rack).PickNodesByWeight(rp.SameRackCount+1, option, func(node Node) error {if option.DataNode != "" && node.IsDataNode() && node.Id() != NodeId(option.DataNode) {return fmt.Errorf("Not matching preferred data node:%s", option.DataNode)