Skip to content

Commit

Permalink
make EVALSHA and EVALSHA_RO to avoid command_keys as well
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-iee committed Jun 30, 2023
1 parent 308c82b commit b011b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ def determine_slot(self, *args):
# redis server to parse the keys. Besides, there is a bug in redis<7.0
# where `self._get_command_keys()` fails anyway. So, we special case
# EVAL/EVALSHA.
if command in ("EVAL", "EVALSHA"):
if command in ("EVAL", "EVALSHA", "EVAL_RO", "EVALSHA_RO"):
# command syntax: EVAL "script body" num_keys ...
if len(args) <= 2:
raise RedisClusterException(f"Invalid args in command: {args}")
Expand Down

0 comments on commit b011b6b

Please sign in to comment.