Commit 16a66581 authored by antirez's avatar antirez
Browse files

Cluster: fix redis-trib --from all.

parent ec054b36
...@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment