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
ed.decode prefers servers with most data shards
Chris Lu1ad34a2487a3
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.goindex 4ec1a7e8fd..b49ab2c58e 100644--- a/weed/shell/command_ec_decode.go+++ b/weed/shell/command_ec_decode.go@@ -149,8 +149,9 @@ func collectEcShards(ctx context.Context, commandEnv *CommandEnv, nodeToEcIndexBmaxShardCount := 0var exisitngEcIndexBits erasure_coding.ShardBitsfor loc, ecIndexBits := range nodeToEcIndexBits {- if ecIndexBits.ShardIdCount() > maxShardCount {- maxShardCount = ecIndexBits.ShardIdCount()+ toBeCopiedShardCount := ecIndexBits.MinusParityShards().ShardIdCount()+ if toBeCopiedShardCount > maxShardCount {+ maxShardCount = toBeCopiedShardCounttargetNodeLocation = locexisitngEcIndexBits = ecIndexBits}