mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 15:51:05 +00:00
redis-trib: call MIGRATE via r.client.call as fix for redis-rb API changes.
See issue #1593. Thanks to @badboy for suggesting the direct client.call fix.
This commit is contained in:
parent
df32eb6827
commit
cc11d103c0
@ -705,7 +705,7 @@ class RedisTrib
|
|||||||
keys = source.r.cluster("getkeysinslot",slot,10)
|
keys = source.r.cluster("getkeysinslot",slot,10)
|
||||||
break if keys.length == 0
|
break if keys.length == 0
|
||||||
keys.each{|key|
|
keys.each{|key|
|
||||||
source.r.migrate(target.info[:host],target.info[:port],key,0,1000)
|
source.r.client.call(["migrate",target.info[:host],target.info[:port],key,0,1000])
|
||||||
print "." if o[:verbose]
|
print "." if o[:verbose]
|
||||||
STDOUT.flush
|
STDOUT.flush
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user