Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c13d787d
Commit
c13d787d
authored
Oct 27, 2014
by
Matt Stancliff
Committed by
antirez
Dec 11, 2014
Browse files
Fix redis-trib import SCAN call
parent
b3349204
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
c13d787d
...
...
@@ -1139,7 +1139,7 @@ class RedisTrib
# right node as needed.
cursor
=
nil
while
cursor
!=
0
cursor
,
keys
=
source
.
scan
(
cursor
,
:count
,
1000
)
cursor
,
keys
=
source
.
scan
(
cursor
,
:count
=>
1000
)
cursor
=
cursor
.
to_i
keys
.
each
{
|
k
|
# Migrate keys using the MIGRATE command.
...
...
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