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
b51be7b3
Commit
b51be7b3
authored
Jan 15, 2014
by
antirez
Browse files
Cluster: clusterBlacklistExists() requires blacklist cleanup before lookup.
parent
a81340ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
b51be7b3
...
...
@@ -671,7 +671,7 @@ void clusterRenameNode(clusterNode *node, char *newname) {
*
* Currently the REDIS_CLUSTER_BLACKLIST_TTL is set to 1 minute, this means
* that redis-trib has 60 seconds to send CLUSTER FORGET messages to nodes
* in the cluster without dealing with the problem
i
f other nodes re-adding
* in the cluster without dealing with the problem
o
f other nodes re-adding
* back the node to nodes we already sent the FORGET command to.
*
* The data structure used is a hash table with an sds string representing
...
...
@@ -721,6 +721,7 @@ int clusterBlacklistExists(char *nodeid) {
sds
id
=
sdsnewlen
(
nodeid
,
REDIS_CLUSTER_NAMELEN
);
int
retval
;
clusterBlacklistCleanup
();
retval
=
dictFind
(
server
.
cluster
->
nodes_black_list
,
id
)
!=
NULL
;
sdsfree
(
id
);
return
retval
;
...
...
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