Commit 152e9f67 authored by antirez's avatar antirez
Browse files

Cluster: redis-trib move_to_slot: don't send SETSLOT to slaves.

parent c6e50885
...@@ -953,6 +953,7 @@ class RedisTrib ...@@ -953,6 +953,7 @@ class RedisTrib
# Set the new node as the owner of the slot in all the known nodes. # Set the new node as the owner of the slot in all the known nodes.
if !o[:cold] if !o[:cold]
@nodes.each{|n| @nodes.each{|n|
next if n.has_flag?("slave")
n.r.cluster("setslot",slot,"node",target.info[:name]) n.r.cluster("setslot",slot,"node",target.info[:name])
} }
end end
......
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