summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/redis-trib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 8f62d68ff..ee11bb904 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -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."