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 compilation
chrislu0c13fc873c96
diff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.goindex ade750cccb..47abfb8927 100644--- a/weed/server/master_server_handlers_admin.go+++ b/weed/server/master_server_handlers_admin.go@@ -4,6 +4,7 @@ import ("context""fmt""github.com/chrislusf/seaweedfs/weed/pb"+ "github.com/chrislusf/seaweedfs/weed/pb/master_pb""math/rand""net/http""strconv"@@ -81,7 +82,9 @@ func (ms *MasterServer) volumeGrowHandler(w http.ResponseWriter, r *http.Requestif ms.Topo.AvailableSpaceFor(option) < int64(count*option.ReplicaPlacement.GetCopyCount()) {err = fmt.Errorf("only %d volumes left, not enough for %d", ms.Topo.AvailableSpaceFor(option), count*option.ReplicaPlacement.GetCopyCount())} else {- count, err = ms.vg.GrowByCountAndType(ms.grpcDialOption, count, option, ms.Topo)+ var newVidLocations []*master_pb.VolumeLocation+ newVidLocations, err = ms.vg.GrowByCountAndType(ms.grpcDialOption, count, option, ms.Topo)+ count = len(newVidLocations)}} else {err = fmt.Errorf("can not parse parameter count %s", r.FormValue("count"))