👌 Adding additional logic to handle this case

This commit is contained in:
Jake Gregg 2019-02-01 08:23:41 -08:00
parent dba9cb31f5
commit f3804cd0b7
1 changed files with 5 additions and 0 deletions

View File

@ -775,6 +775,11 @@ func cmdSlot(cmd Cmder, pos int) int {
}
func (c *ClusterClient) cmdSlot(cmd Cmder) int {
args := cmd.Args()
if args[0] == "cluster" && args[1] == "getkeysinslot" {
return args[2].(int)
}
cmdInfo := c.cmdInfo(cmd.Name())
return cmdSlot(cmd, cmdFirstKeyPos(cmd, cmdInfo))
}