Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7ddc0fe6
You need to sign in or sign up before continuing.
Commit
7ddc0fe6
authored
Feb 27, 2013
by
antirez
Browse files
redis-trib: skip noaddr and disconnected nodes while loading cluster info.
parent
d20dea3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
7ddc0fe6
...
@@ -408,6 +408,7 @@ class RedisTrib
...
@@ -408,6 +408,7 @@ class RedisTrib
node
.
load_info
(
:getfriends
=>
true
)
node
.
load_info
(
:getfriends
=>
true
)
add_node
(
node
)
add_node
(
node
)
node
.
friends
.
each
{
|
f
|
node
.
friends
.
each
{
|
f
|
next
if
f
[
:flags
].
index
(
"noaddr"
)
or
f
[
:flags
].
index
(
"disconnected"
)
fnode
=
ClusterNode
.
new
(
f
[
:addr
])
fnode
=
ClusterNode
.
new
(
f
[
:addr
])
fnode
.
connect
()
fnode
.
connect
()
fnode
.
load_info
()
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