File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -956,7 +956,7 @@ def determine_slot(self, *args):
956
956
determine what slots to map the command to; or, if the keys don't
957
957
all map to the same key slot.
958
958
"""
959
- command = args [0 ]
959
+ command = args [0 ]. upper ()
960
960
if self .command_flags .get (command ) == SLOT_ID :
961
961
# The command contains the slot ID
962
962
return args [1 ]
@@ -971,7 +971,7 @@ def determine_slot(self, *args):
971
971
# command syntax: EVAL "script body" num_keys ...
972
972
if len (args ) <= 2 :
973
973
raise RedisClusterException (f"Invalid args in command: { args } " )
974
- num_actual_keys = args [2 ]
974
+ num_actual_keys = int ( args [2 ])
975
975
eval_keys = args [3 : 3 + num_actual_keys ]
976
976
# if there are 0 keys, that means the script can be run on any node
977
977
# so we can just return a random slot
You can’t perform that action at this time.
0 commit comments