Fix redis-trib import SCAN call

This commit is contained in:
Matt Stancliff 2014-10-27 10:09:37 -04:00 committed by antirez
parent b3349204b8
commit c13d787d13

View File

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