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_volume_balance.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_volume_balance.go')
| -rw-r--r-- | weed/shell/command_volume_balance.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go index 4c55de5fb..7a983de1a 100644 --- a/weed/shell/command_volume_balance.go +++ b/weed/shell/command_volume_balance.go @@ -76,7 +76,7 @@ func (c *commandVolumeBalance) Do(args []string, commandEnv *CommandEnv, writer } // collect topology information - topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv) + topologyInfo, volumeSizeLimitMb, err := collectTopologyInfo(commandEnv, 15*time.Second) if err != nil { return err } |
