Skip to content

Commit b011b6b

Browse files
committed
make EVALSHA and EVALSHA_RO to avoid command_keys as well
1 parent 308c82b commit b011b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ def determine_slot(self, *args):
957957
# redis server to parse the keys. Besides, there is a bug in redis<7.0
958958
# where `self._get_command_keys()` fails anyway. So, we special case
959959
# EVAL/EVALSHA.
960-
if command in ("EVAL", "EVALSHA"):
960+
if command in ("EVAL", "EVALSHA", "EVAL_RO", "EVALSHA_RO"):
961961
# command syntax: EVAL "script body" num_keys ...
962962
if len(args) <= 2:
963963
raise RedisClusterException(f"Invalid args in command: {args}")

0 commit comments

Comments
 (0)