mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 00:31:03 +00:00
Cluster: clear NOADDR flag when updating node address.
This commit is contained in:
parent
f62dfa0f50
commit
22d17bc14f
@ -1243,6 +1243,7 @@ int nodeUpdateAddressIfNeeded(clusterNode *node, clusterLink *link, int port) {
|
|||||||
memcpy(node->ip,ip,sizeof(ip));
|
memcpy(node->ip,ip,sizeof(ip));
|
||||||
node->port = port;
|
node->port = port;
|
||||||
if (node->link) freeClusterLink(node->link);
|
if (node->link) freeClusterLink(node->link);
|
||||||
|
node->flags &= ~REDIS_NODE_NOADDR;
|
||||||
redisLog(REDIS_WARNING,"Address updated for node %.40s, now %s:%d",
|
redisLog(REDIS_WARNING,"Address updated for node %.40s, now %s:%d",
|
||||||
node->name, node->ip, node->port);
|
node->name, node->ip, node->port);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user