mirror of
https://github.com/redis/go-redis.git
synced 2025-08-13 09:22:25 +03:00
♻️ Commands that specify keyslots should not try to hash for keyslot location
This commit is contained in:
@@ -74,6 +74,11 @@ func cmdString(cmd Cmder, val interface{}) string {
|
||||
|
||||
func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
|
||||
switch cmd.Name() {
|
||||
case "cluster":
|
||||
switch cmd.stringArg(1) {
|
||||
case "getkeysinslot":
|
||||
return 2
|
||||
}
|
||||
case "eval", "evalsha":
|
||||
if cmd.stringArg(2) != "0" {
|
||||
return 3
|
||||
|
Reference in New Issue
Block a user