diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-12 01:11:25 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-12 01:11:25 -0800 |
| commit | 826a7b307e37299528d7b3b2aa8f374800bd28b6 (patch) | |
| tree | 351e5654880bc15c96a8a63ab45ec85d68094c92 /weed/shell/commands.go | |
| parent | cd1ad88f30419f330af22333e1621b92d3a9b695 (diff) | |
| download | seaweedfs-826a7b307e37299528d7b3b2aa8f374800bd28b6.tar.xz seaweedfs-826a7b307e37299528d7b3b2aa8f374800bd28b6.zip | |
master: remove hard coded filer settings in master.toml
fix https://github.com/chrislusf/seaweedfs/issues/2529
Diffstat (limited to 'weed/shell/commands.go')
| -rw-r--r-- | weed/shell/commands.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 985f6423b..ec71edee0 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -29,7 +29,7 @@ type ShellOptions struct { type CommandEnv struct { env map[string]string MasterClient *wdclient.MasterClient - option ShellOptions + option *ShellOptions locker *exclusive_locks.ExclusiveLocker } @@ -43,7 +43,7 @@ var ( Commands = []command{} ) -func NewCommandEnv(options ShellOptions) *CommandEnv { +func NewCommandEnv(options *ShellOptions) *CommandEnv { ce := &CommandEnv{ env: make(map[string]string), MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", "", pb.ServerAddresses(*options.Masters).ToAddresses()), |
