Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
791a2956
Commit
791a2956
authored
Jan 12, 2016
by
antirez
Browse files
Cluster: redis-trib move_to_slot: don't send SETSLOT to slaves.
parent
f2879c25
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
791a2956
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment