]> git.saurik.com Git - redis.git/commitdiff
show node with myself flag always as connected in CLUSTER NODES output.
authorantirez <antirez@gmail.com>
Wed, 28 Sep 2011 16:28:36 +0000 (18:28 +0200)
committerantirez <antirez@gmail.com>
Wed, 28 Sep 2011 16:28:36 +0000 (18:28 +0200)
src/cluster.c

index 13eb7b5bb44158d6e834d8293ca7b8221434daf1..30b0946f315727945f2146a1605680919961b664 100644 (file)
@@ -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;