aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-01 22:13:47 -0800
committerChris Lu <chris.lu@gmail.com>2020-03-01 22:13:47 -0800
commit6a8484b4ae2615c2cc88e3a66d03aead3966ba7c (patch)
tree9cd878b35c425f24f22ac5246ed1d0046533dac6 /weed/shell/commands.go
parent0ca68a2a6d87786dbebe87fbd4b786b3318c1dcb (diff)
downloadseaweedfs-6a8484b4ae2615c2cc88e3a66d03aead3966ba7c.tar.xz
seaweedfs-6a8484b4ae2615c2cc88e3a66d03aead3966ba7c.zip
master able to list all master clients by type
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 31ca31bc3..a67a4e45e 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -44,8 +44,7 @@ var (
func NewCommandEnv(options ShellOptions) *CommandEnv {
return &CommandEnv{
env: make(map[string]string),
- MasterClient: wdclient.NewMasterClient(
- options.GrpcDialOption, "shell", strings.Split(*options.Masters, ",")),
+ MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, "shell", 0, strings.Split(*options.Masters, ",")),
option: options,
}
}