aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_lock_unlock.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_fs_lock_unlock.go')
-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
}