aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-11-11 22:09:41 -0800
committerGitHub <noreply@github.com>2020-11-11 22:09:41 -0800
commit827930e2492280c80a1e4dbe2a4e07bf4c7447e5 (patch)
tree8de75aa01a8cec976c546bc64119b4a09b0f3ea8 /weed/shell/commands.go
parent4300ca814219105b5900ebeea28ee2d6a4ca34c2 (diff)
parent0880aff224976ba1a22f7f1d815a35f2556165dd (diff)
downloadseaweedfs-827930e2492280c80a1e4dbe2a4e07bf4c7447e5.tar.xz
seaweedfs-827930e2492280c80a1e4dbe2a4e07bf4c7447e5.zip
Merge pull request #1610 from kmlebedev/prefer_read_in_this_dc
prefer to read from volumes in this data center
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go
index 1a937ad53..0e285214b 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -45,7 +45,7 @@ var (
func NewCommandEnv(options ShellOptions) *CommandEnv {
ce := &CommandEnv{
env: make(map[string]string),
- MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", 0, strings.Split(*options.Masters, ",")),
+ MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", 0, "", strings.Split(*options.Masters, ",")),
option: options,
}
ce.locker = exclusive_locks.NewExclusiveLocker(ce.MasterClient)