Commit dea93844 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo
Browse files

Merge pull request #2107 from mattsta/fix-trib-import

Fix redis-trib import SCAN call
parents 4ff365b3 14f2582d
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment