Commit d20dea3e authored by antirez's avatar antirez
Browse files

Cluster: blank node address when flagging it as NOADDR.

parent 2dcb5ab7
...@@ -783,6 +783,8 @@ int clusterProcessPacket(clusterLink *link) { ...@@ -783,6 +783,8 @@ int clusterProcessPacket(clusterLink *link) {
* address. */ * address. */
redisLog(REDIS_DEBUG,"PONG contains mismatching sender ID"); redisLog(REDIS_DEBUG,"PONG contains mismatching sender ID");
link->node->flags |= REDIS_NODE_NOADDR; link->node->flags |= REDIS_NODE_NOADDR;
link->node->ip[0] = '\0';
link->node->port = 0;
freeClusterLink(link); freeClusterLink(link);
update_config = 1; update_config = 1;
/* FIXME: remove this node if we already have it. /* FIXME: remove this node if we already have it.
......
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