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
609ea084
Commit
609ea084
authored
Mar 31, 2012
by
antirez
Browse files
redis-trib: fix the MIGRATE call that now has milliseconds timeout (were seconds before).
parent
9157549f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
609ea084
...
...
@@ -357,7 +357,7 @@ class RedisTrib
keys
=
source
.
r
.
cluster
(
"getkeysinslot"
,
slot
,
10
)
break
if
keys
.
length
==
0
keys
.
each
{
|
key
|
source
.
r
.
migrate
(
target
.
info
[
:host
],
target
.
info
[
:port
],
key
,
0
,
1
)
source
.
r
.
migrate
(
target
.
info
[
:host
],
target
.
info
[
:port
],
key
,
0
,
1
000
)
print
"."
if
o
[
:verbose
]
STDOUT
.
flush
}
...
...
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