aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_cluster_ps.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-11 00:20:27 -0700
committerchrislu <chris.lu@gmail.com>2022-07-28 23:24:38 -0700
commit9f479aab98e6d8b02026d935af1f614ee8b0b403 (patch)
treefcc84420d1d6b8d13113413ced9920d9a5d10f0e /weed/shell/command_cluster_ps.go
parentbb01b68fa0066adecf8d6a2c336ffd6cb4363bdd (diff)
downloadseaweedfs-9f479aab98e6d8b02026d935af1f614ee8b0b403.tar.xz
seaweedfs-9f479aab98e6d8b02026d935af1f614ee8b0b403.zip
allocate brokers to serve segments
Diffstat (limited to 'weed/shell/command_cluster_ps.go')
-rw-r--r--weed/shell/command_cluster_ps.go3
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)
+ }
}
}