mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 10:37:24 +08:00
shell: show which server holds the lock
fix https://github.com/chrislusf/seaweedfs/issues/1983
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user