summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-01-12 12:15:59 +0100
committerantirez <antirez@gmail.com>2016-01-25 15:21:36 +0100
commit791a2956364ceb81e75d833e55e7300f955f6df1 (patch)
tree5a32365fa041c4013158a79dbd5350c645936448
parentf2879c25d130f6ce5e01b0153c4ed817ec8fbe6d (diff)
downloadredis-791a2956364ceb81e75d833e55e7300f955f6df1.tar.gz
Cluster: redis-trib move_to_slot: don't send SETSLOT to slaves.
-rwxr-xr-xsrc/redis-trib.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 567f6ceac..125e5a4a1 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