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