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
7d3e32d5
Commit
7d3e32d5
authored
Mar 19, 2013
by
antirez
Browse files
redis-trib: don't load cluster config from nodes in FAIL state.
parent
e28e61e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
7d3e32d5
...
...
@@ -409,7 +409,9 @@ class RedisTrib
node
.
load_info
(
:getfriends
=>
true
)
add_node
(
node
)
node
.
friends
.
each
{
|
f
|
next
if
f
[
:flags
].
index
(
"noaddr"
)
or
f
[
:flags
].
index
(
"disconnected"
)
next
if
f
[
:flags
].
index
(
"noaddr"
)
||
f
[
:flags
].
index
(
"disconnected"
)
||
f
[
:flags
].
index
(
"fail"
)
fnode
=
ClusterNode
.
new
(
f
[
:addr
])
fnode
.
connect
()
fnode
.
load_info
()
...
...
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