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
f106a793
Commit
f106a793
authored
Feb 10, 2014
by
antirez
Browse files
Cluster: redis-trib del-node variable typo fixed.
parent
f885fa8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
f106a793
...
@@ -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
...
...
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