aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/common.go
diff options
context:
space:
mode:
authorLisandro Pin <lisandro.pin@proton.ch>2025-05-13 16:59:26 +0200
committerGitHub <noreply@github.com>2025-05-13 07:59:26 -0700
commit0be020b0fab7419bb55fc5159dd699be56e2a605 (patch)
tree22cbab2eb2f771b9f2da7f0410c4f5486c6bca03 /weed/shell/common.go
parentba1d82db90235fb7ee589bce94cd575e2a16e26e (diff)
downloadseaweedfs-0be020b0fab7419bb55fc5159dd699be56e2a605.tar.xz
seaweedfs-0be020b0fab7419bb55fc5159dd699be56e2a605.zip
Nit: unify the default `--maxParallelization` value for `weed shell` commands supporting this option (#6788)
Diffstat (limited to 'weed/shell/common.go')
-rw-r--r--weed/shell/common.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/shell/common.go b/weed/shell/common.go
index 9fe190b31..43571176e 100644
--- a/weed/shell/common.go
+++ b/weed/shell/common.go
@@ -5,6 +5,11 @@ import (
"sync"
)
+var (
+ // Default maximum parallelization/concurrency for commands supporting it.
+ DefaultMaxParallelization = 10
+)
+
// ErrorWaitGroup implements a goroutine wait group which aggregates errors, if any.
type ErrorWaitGroup struct {
maxConcurrency int