Commit f106a793 authored by antirez's avatar antirez
Browse files

Cluster: redis-trib del-node variable typo fixed.

parent f885fa8b
...@@ -898,7 +898,7 @@ class RedisTrib ...@@ -898,7 +898,7 @@ class RedisTrib
xputs ">>> Sending CLUSTER FORGET messages to the cluster..." xputs ">>> Sending CLUSTER FORGET messages to the cluster..."
@nodes.each{|n| @nodes.each{|n|
next if n == node next if n == node
if n.info[:replicate] && n.info[:replicate].downcase == node_id if n.info[:replicate] && n.info[:replicate].downcase == id
# Reconfigure the slave to replicate with some other node # Reconfigure the slave to replicate with some other node
xputs ">>> #{n} as replica of #{master}" xputs ">>> #{n} as replica of #{master}"
master = get_master_with_least_replicas master = get_master_with_least_replicas
......
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