diff options
| author | chrislu <chrislu@roblox.com> | 2021-12-10 13:24:38 -0800 |
|---|---|---|
| committer | chrislu <chrislu@roblox.com> | 2021-12-10 13:24:38 -0800 |
| commit | a2d3f89c7b136780f0ca0400dec3c93c9370df8c (patch) | |
| tree | b7a5037df534122cff459c3902a38c270348d3f5 /weed/shell/commands.go | |
| parent | 991a3dca0d30e980a234c8d8e4c5558625b03325 (diff) | |
| download | seaweedfs-a2d3f89c7b136780f0ca0400dec3c93c9370df8c.tar.xz seaweedfs-a2d3f89c7b136780f0ca0400dec3c93c9370df8c.zip | |
add lock messages
Diffstat (limited to 'weed/shell/commands.go')
| -rw-r--r-- | weed/shell/commands.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 6b614c159..02c0af59e 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -70,11 +70,12 @@ func (ce *CommandEnv) isDirectory(path string) bool { } -func (ce *CommandEnv) confirmIsLocked() error { +func (ce *CommandEnv) confirmIsLocked(args []string) error { if ce.locker.IsLocking() { return nil } + ce.locker.SetMessage(fmt.Sprintf("%v", args)) return fmt.Errorf("need to run \"lock\" first to continue") |
