]> git.saurik.com Git - redis.git/commitdiff
redis-trib: fix the MIGRATE call that now has milliseconds timeout (were seconds...
authorantirez <antirez@gmail.com>
Sat, 31 Mar 2012 09:28:37 +0000 (11:28 +0200)
committerantirez <antirez@gmail.com>
Sat, 31 Mar 2012 09:28:37 +0000 (11:28 +0200)
src/redis-trib.rb

index 473e492292912d60cbafbcaf917d24c61183b36a..1b83e19c2768c20d78f33c4f2d9f31a38f78630f 100755 (executable)
@@ -357,7 +357,7 @@ class RedisTrib
             keys = source.r.cluster("getkeysinslot",slot,10)
             break if keys.length == 0
             keys.each{|key|
-                source.r.migrate(target.info[:host],target.info[:port],key,0,1)
+                source.r.migrate(target.info[:host],target.info[:port],key,0,1000)
                 print "." if o[:verbose]
                 STDOUT.flush
             }