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
16a66581
Commit
16a66581
authored
Jul 21, 2014
by
antirez
Browse files
Cluster: fix redis-trib --from all.
parent
ec054b36
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
16a66581
...
@@ -856,6 +856,10 @@ class RedisTrib
...
@@ -856,6 +856,10 @@ class RedisTrib
sources
=
[]
sources
=
[]
if
opt
[
'from'
]
if
opt
[
'from'
]
opt
[
'from'
].
split
(
','
).
each
{
|
node_id
|
opt
[
'from'
].
split
(
','
).
each
{
|
node_id
|
if
node_id
==
"all"
sources
=
"all"
break
end
src
=
get_node_by_name
(
node_id
)
src
=
get_node_by_name
(
node_id
)
if
!
src
||
src
.
has_flag?
(
"slave"
)
if
!
src
||
src
.
has_flag?
(
"slave"
)
xputs
"*** The specified node is not known or is not a master, please retry."
xputs
"*** The specified node is not known or is not a master, please retry."
...
...
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