From: Salvatore Sanfilippo Date: Mon, 11 Apr 2011 15:40:35 +0000 (+0200) Subject: added known nodes info in CLUSTER INFO X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/8c4c50906cc91d8dffbb22cb4a520d11a1c6344b?ds=inline added known nodes info in CLUSTER INFO --- diff --git a/src/cluster.c b/src/cluster.c index e2b82044..0a580fa7 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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)));