redis-rb-cluster
redis-rb-cluster copied to clipboard
ASK handling
Hello.
I don't understand ASK redirect handling, maybe there is error?
https://github.com/antirez/redis-rb-cluster/blob/master/cluster.rb#L239
How this code ensures that asking command and redirected command goes to the right instance (from catched ASK error)?
r should be a Redis instance from redis-rb, and it looks there is no "asking" method in that class, so, it looks like an error to me too. Maybe @antirez could clarify what his intent was there? Then we could try to fix it, if it's actually an error.