mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
added known nodes info in CLUSTER INFO
This commit is contained in:
parent
b800a3ab20
commit
8c4c50906c
@ -1192,11 +1192,13 @@ void clusterCommand(redisClient *c) {
|
||||
"cluster_slots_ok:%d\r\n"
|
||||
"cluster_slots_pfail:%d\r\n"
|
||||
"cluster_slots_fail:%d\r\n"
|
||||
"cluster_known_nodes:%lu\r\n"
|
||||
, statestr[server.cluster.state],
|
||||
slots_assigned,
|
||||
slots_ok,
|
||||
slots_pfail,
|
||||
slots_fail
|
||||
slots_fail,
|
||||
dictSize(server.cluster.nodes)
|
||||
);
|
||||
addReplySds(c,sdscatprintf(sdsempty(),"$%lu\r\n",
|
||||
(unsigned long)sdslen(info)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user