From: antirez Date: Wed, 28 Sep 2011 16:28:36 +0000 (+0200) Subject: show node with myself flag always as connected in CLUSTER NODES output. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/1ef8b0a96d9b1a9f3a69914ece8e20b3c3d4c64c?ds=inline show node with myself flag always as connected in CLUSTER NODES output. --- diff --git a/src/cluster.c b/src/cluster.c index 13eb7b5b..30b0946f 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -1099,7 +1099,8 @@ sds clusterGenNodesDescription(void) { ci = sdscatprintf(ci,"%ld %ld %s", (long) node->ping_sent, (long) node->pong_received, - node->link ? "connected" : "disconnected"); + (node->link || node->flags & REDIS_NODE_MYSELF) ? + "connected" : "disconnected"); /* Slots served by this instance */ start = -1;