Cluster: fix redis-trib --from all.

This commit is contained in:
antirez 2014-07-21 15:30:25 +02:00
parent 73a809b159
commit 15336ffe86

View File

@ -856,6 +856,10 @@ class RedisTrib
sources = []
if opt['from']
opt['from'].split(',').each{|node_id|
if node_id == "all"
sources = "all"
break
end
src = get_node_by_name(node_id)
if !src || src.has_flag?("slave")
xputs "*** The specified node is not known or is not a master, please retry."