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
f2879c25
Commit
f2879c25
authored
Jan 11, 2016
by
antirez
Browse files
Cluster: fix redis-trib reference of variable in warning.
parent
49b1e788
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
f2879c25
...
...
@@ -937,7 +937,7 @@ class RedisTrib
source
.
r
.
client
.
call
([
"migrate"
,
target
.
info
[
:host
],
target
.
info
[
:port
],
""
,
0
,
@timeout
,
:keys
,
*
keys
])
rescue
=>
e
if
o
[
:fix
]
&&
e
.
to_s
=~
/BUSYKEY/
xputs
"*** Target key
#{
key
}
exists. Replacing it for FIX."
xputs
"*** Target key exists. Replacing it for FIX."
source
.
r
.
client
.
call
([
"migrate"
,
target
.
info
[
:host
],
target
.
info
[
:port
],
""
,
0
,
@timeout
,
:replace
,
:keys
,
*
keys
])
else
puts
""
...
...
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