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
dea93844
Commit
dea93844
authored
Dec 11, 2014
by
Salvatore Sanfilippo
Browse files
Merge pull request #2107 from mattsta/fix-trib-import
Fix redis-trib import SCAN call
parents
4ff365b3
14f2582d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
dea93844
...
@@ -1139,7 +1139,7 @@ class RedisTrib
...
@@ -1139,7 +1139,7 @@ class RedisTrib
# right node as needed.
# right node as needed.
cursor
=
nil
cursor
=
nil
while
cursor
!=
0
while
cursor
!=
0
cursor
,
keys
=
source
.
scan
(
cursor
,
:count
,
1000
)
cursor
,
keys
=
source
.
scan
(
cursor
,
:count
=>
1000
)
cursor
=
cursor
.
to_i
cursor
=
cursor
.
to_i
keys
.
each
{
|
k
|
keys
.
each
{
|
k
|
# Migrate keys using the MIGRATE command.
# 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