Skip to content

Commit 1ccb475

Browse files
Cluster determine slot command name need upper
The judgment of the name is all uppercase, for example: L970: if command in ("EVAL", "EVALSHA"):
1 parent 19b55c6 commit 1ccb475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/cluster.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def determine_slot(self, *args):
956956
determine what slots to map the command to; or, if the keys don't
957957
all map to the same key slot.
958958
"""
959-
command = args[0]
959+
command = args[0].upper()
960960
if self.command_flags.get(command) == SLOT_ID:
961961
# The command contains the slot ID
962962
return args[1]

0 commit comments

Comments
 (0)