Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Fix broken ASKING impl in regular client
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokzen committed Oct 22, 2015
1 parent 4a2d4d7 commit 199ee0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rediscluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def execute_command(self, *args, **kwargs):
try:
if asking:
r.send_command('ASKING')
self.parse_response(r, "ASKING", **kwargs)
asking = False

r.send_command(*args)
Expand Down Expand Up @@ -295,7 +296,6 @@ def execute_command(self, *args, **kwargs):
if ttl < self.COMMAND_TTL / 2:
time.sleep(0.05)
except AskError as e:
node = self.connection_pool.nodes.set_node(e.host, e.port, server_type='master')
redirect_addr, asking = "%s:%s" % (e.host, e.port), True
finally:
self.connection_pool.release(r)
Expand Down

0 comments on commit 199ee0b

Please sign in to comment.