Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f4093753
Commit
f4093753
authored
Feb 22, 2013
by
antirez
Browse files
Cluster: add cluster_size field in CLUSTER INFO output.
parent
d218a4e2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
f4093753
...
...
@@ -1565,12 +1565,14 @@ void clusterCommand(redisClient *c) {
"cluster_slots_pfail:%d\r\n"
"cluster_slots_fail:%d\r\n"
"cluster_known_nodes:%lu\r\n"
"cluster_size:%d\r\n"
, statestr[server.cluster->state],
slots_assigned,
slots_ok,
slots_pfail,
slots_fail,
dictSize(server.cluster->nodes)
dictSize(server.cluster->nodes),
server.cluster->size
);
addReplySds(c,sdscatprintf(sdsempty(),"$%lu\r\n",
(unsigned long)sdslen(info)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment