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

Fix redis-trib import SCAN call
This commit is contained in:
Salvatore Sanfilippo 2014-12-11 15:05:38 +01:00
commit dea938440c

View File

@ -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.