aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-04-22 23:56:35 -0700
committerChris Lu <chris.lu@gmail.com>2021-04-22 23:56:35 -0700
commitf0ad172e80e00222bb0ea9a31cb83fdd7e7844a8 (patch)
treecbc78fc1509863e8ea93f27306bc58f4e8faedde /weed/shell
parent89eb9f6e7073460838699b9c3a42f2cb830f8224 (diff)
downloadseaweedfs-f0ad172e80e00222bb0ea9a31cb83fdd7e7844a8.tar.xz
seaweedfs-f0ad172e80e00222bb0ea9a31cb83fdd7e7844a8.zip
shell: show which server holds the lock
fix https://github.com/chrislusf/seaweedfs/issues/1983
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_fs_lock_unlock.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_fs_lock_unlock.go b/weed/shell/command_fs_lock_unlock.go
index 8a6e8f71b..33458bb6f 100644
--- a/weed/shell/command_fs_lock_unlock.go
+++ b/weed/shell/command_fs_lock_unlock.go
@@ -1,6 +1,7 @@
package shell
import (
+ "github.com/chrislusf/seaweedfs/weed/util"
"io"
)
@@ -26,7 +27,7 @@ func (c *commandLock) Help() string {
func (c *commandLock) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
- commandEnv.locker.RequestLock()
+ commandEnv.locker.RequestLock(util.DetectedHostAddress())
return nil
}