Commit 1ef8b0a9 authored by antirez's avatar antirez
Browse files

show node with myself flag always as connected in CLUSTER NODES output.

parent 07c152a7
......@@ -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;
......
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