diff options
| author | chrislu <chris.lu@gmail.com> | 2022-02-08 00:53:55 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-02-08 00:53:55 -0800 |
| commit | f18803424aa64877971330e60d2a4207d5bf1bd2 (patch) | |
| tree | 426d9b4aa5c56702e92d6b840d1a595c88c7a64e /weed/shell/command_ec_encode.go | |
| parent | 98604059741190178efd26ad788d52f067b3097c (diff) | |
| download | seaweedfs-f18803424aa64877971330e60d2a4207d5bf1bd2.tar.xz seaweedfs-f18803424aa64877971330e60d2a4207d5bf1bd2.zip | |
volume.balance: add delay during tight loop
fix https://github.com/chrislusf/seaweedfs/issues/2637
Diffstat (limited to 'weed/shell/command_ec_encode.go')
| -rw-r--r-- | weed/shell/command_ec_encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index fcdee264e..9ae9b049c 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -267,7 +267,7 @@ func balancedEcDistribution(servers []*EcNode) (allocated [][]uint32) { func collectVolumeIdsForEcEncode(commandEnv *CommandEnv, selectedCollection string, fullPercentage float64, quietPeriod time.Duration) (vids []needle.VolumeId, err error) { // collect topology information - topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv) + topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv, 0) if err != nil { return } |
