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
refactor
chrisluaccba3070a4a
diff --git a/weed/server/master_grpc_server_volume.go b/weed/server/master_grpc_server_volume.goindex eb0d43705d..ec0dcf8a17 100644--- a/weed/server/master_grpc_server_volume.go+++ b/weed/server/master_grpc_server_volume.go@@ -4,7 +4,6 @@ import ("context""fmt""math/rand/v2"- "reflect""strings""sync""time"@@ -92,7 +91,8 @@ func (ms *MasterServer) ProcessGrowRequest() {// filter out identical requests being processedfound := falsefilter.Range(func(k, v interface{}) bool {- if reflect.DeepEqual(k, req) {+ existingReq := k.(*topology.VolumeGrowRequest)+ if existingReq.Equals(req) {found = true}return !founddiff --git a/weed/topology/volume_growth.go b/weed/topology/volume_growth.goindex 70f0d9cd4b..44462aa877 100644--- a/weed/topology/volume_growth.go+++ b/weed/topology/volume_growth.go@@ -5,6 +5,7 @@ import ("fmt""github.com/seaweedfs/seaweedfs/weed/pb/master_pb""math/rand/v2"+ "reflect""sync""time"@@ -29,6 +30,11 @@ type VolumeGrowRequest struct {Option *VolumeGrowOptionCount uint32Force bool+ Reason string+}++func (vg *VolumeGrowRequest) Equals(req *VolumeGrowRequest) bool {+ return reflect.DeepEqual(existingReq.Option, req.Option) && vg.Count == req.Count}type volumeGrowthStrategy struct {