From 34c1871e9f80d9f23fb7add614dfb49ee1bd056a Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 25 Mar 2013 13:03:01 +0100 Subject: [PATCH] Cluster: set node role on successful handshake. --- src/cluster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cluster.c b/src/cluster.c index 71a5a3e7..5728d580 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -855,6 +855,7 @@ int clusterProcessPacket(clusterLink *link) { redisLog(REDIS_DEBUG,"Handshake with node %.40s completed.", link->node->name); link->node->flags &= ~REDIS_NODE_HANDSHAKE; + link->node->flags |= flags&(REDIS_NODE_MASTER|REDIS_NODE_SLAVE); update_config = 1; } else if (memcmp(link->node->name,hdr->sender, REDIS_CLUSTER_NAMELEN) != 0)