Cluster: clear NOADDR flag when updating node address.

This commit is contained in:
antirez 2014-06-20 09:32:47 +02:00
parent f62dfa0f50
commit 22d17bc14f

View File

@ -1243,6 +1243,7 @@ int nodeUpdateAddressIfNeeded(clusterNode *node, clusterLink *link, int port) {
memcpy(node->ip,ip,sizeof(ip));
node->port = port;
if (node->link) freeClusterLink(node->link);
node->flags &= ~REDIS_NODE_NOADDR;
redisLog(REDIS_WARNING,"Address updated for node %.40s, now %s:%d",
node->name, node->ip, node->port);