Cluster: fix redis-trib --from all.
This commit is contained in:
parent
73a809b159
commit
15336ffe86
@ -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."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user