Commit f4093753 authored by antirez's avatar antirez
Browse files

Cluster: add cluster_size field in CLUSTER INFO output.

parent d218a4e2
......@@ -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)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment