From 152e9f67f885eea48da815412740ccd3029bf46d Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 12 Jan 2016 12:15:59 +0100 Subject: [PATCH] Cluster: redis-trib move_to_slot: don't send SETSLOT to slaves. --- src/redis-trib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 567f6cea..125e5a4a 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -953,6 +953,7 @@ class RedisTrib # Set the new node as the owner of the slot in all the known nodes. if !o[:cold] @nodes.each{|n| + next if n.has_flag?("slave") n.r.cluster("setslot",slot,"node",target.info[:name]) } end