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
d20dea3e
Commit
d20dea3e
authored
Feb 27, 2013
by
antirez
Browse files
Cluster: blank node address when flagging it as NOADDR.
parent
2dcb5ab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
d20dea3e
...
@@ -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.
...
...
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