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
de10b8d9
Commit
de10b8d9
authored
Sep 26, 2014
by
antirez
Browse files
redis-trib should not abort easily on connection issues.
parent
d4222e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
de10b8d9
...
...
@@ -686,8 +686,13 @@ class RedisTrib
f
[
:flags
].
index
(
"fail"
)
fnode
=
ClusterNode
.
new
(
f
[
:addr
])
fnode
.
connect
()
fnode
.
load_info
()
add_node
(
fnode
)
next
if
!
fnode
.
r
begin
fnode
.
load_info
()
add_node
(
fnode
)
rescue
=>
e
xputs
"[ERR] Unable to load info for node
#{
fnode
}
"
end
}
populate_nodes_replicas_info
end
...
...
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