mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +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));
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user