diff options
| author | chrislu <chris.lu@gmail.com> | 2022-07-11 00:20:27 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-07-28 23:24:38 -0700 |
| commit | 9f479aab98e6d8b02026d935af1f614ee8b0b403 (patch) | |
| tree | fcc84420d1d6b8d13113413ced9920d9a5d10f0e /weed/shell | |
| parent | bb01b68fa0066adecf8d6a2c336ffd6cb4363bdd (diff) | |
| download | seaweedfs-9f479aab98e6d8b02026d935af1f614ee8b0b403.tar.xz seaweedfs-9f479aab98e6d8b02026d935af1f614ee8b0b403.zip | |
allocate brokers to serve segments
Diffstat (limited to 'weed/shell')
| -rw-r--r-- | weed/shell/command_cluster_ps.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/shell/command_cluster_ps.go b/weed/shell/command_cluster_ps.go index 974815a15..f620df3f7 100644 --- a/weed/shell/command_cluster_ps.go +++ b/weed/shell/command_cluster_ps.go @@ -86,6 +86,9 @@ func (c *commandClusterPs) Do(args []string, commandEnv *CommandEnv, writer io.W if node.Rack != "" { fmt.Fprintf(writer, " Rack: %v\n", node.Rack) } + if node.IsLeader { + fmt.Fprintf(writer, " IsLeader: %v\n", true) + } } } |
