Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9eb02c6a
Commit
9eb02c6a
authored
Jun 20, 2014
by
antirez
Browse files
Cluster: clear NOADDR flag when updating node address.
parent
52456bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
9eb02c6a
...
@@ -1243,6 +1243,7 @@ int nodeUpdateAddressIfNeeded(clusterNode *node, clusterLink *link, int port) {
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment