aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-19 12:02:23 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-19 12:02:23 -0700
commitad5099e57011e3a7cac8e34436ecf718acf3e5b3 (patch)
tree72ab8f57a5f02b00e6d976561087285a177afd2c /weed/shell/commands.go
parent5abdc0be7750f51f7eb171ff80e6ec20674f3617 (diff)
downloadseaweedfs-ad5099e57011e3a7cac8e34436ecf718acf3e5b3.tar.xz
seaweedfs-ad5099e57011e3a7cac8e34436ecf718acf3e5b3.zip
refactor
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 18f357ac7..6b614c159 100644
--- a/weed/shell/commands.go
+++ b/weed/shell/commands.go
@@ -49,7 +49,7 @@ func NewCommandEnv(options ShellOptions) *CommandEnv {
MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", "", pb.ServerAddresses(*options.Masters).ToAddresses()),
option: options,
}
- ce.locker = exclusive_locks.NewExclusiveLocker(ce.MasterClient)
+ ce.locker = exclusive_locks.NewExclusiveLocker(ce.MasterClient, "admin")
return ce
}