mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
Cluster: set node role on successful handshake.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user