aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/commands.go
diff options
context:
space:
mode:
authorchrislu <chrislu@roblox.com>2021-12-10 13:24:38 -0800
committerchrislu <chrislu@roblox.com>2021-12-10 13:24:38 -0800
commita2d3f89c7b136780f0ca0400dec3c93c9370df8c (patch)
treeb7a5037df534122cff459c3902a38c270348d3f5 /weed/shell/commands.go
parent991a3dca0d30e980a234c8d8e4c5558625b03325 (diff)
downloadseaweedfs-a2d3f89c7b136780f0ca0400dec3c93c9370df8c.tar.xz
seaweedfs-a2d3f89c7b136780f0ca0400dec3c93c9370df8c.zip
add lock messages
Diffstat (limited to 'weed/shell/commands.go')
-rw-r--r--weed/shell/commands.go3
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")