Skip to content

Commit bb7c519

Browse files
committed
Use correct slot for COUNTKEYSINSLOT command
1 parent 4648432 commit bb7c519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osscluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ func (c *ClusterClient) cmdInfo(ctx context.Context, name string) *CommandInfo {
18561856

18571857
func (c *ClusterClient) cmdSlot(ctx context.Context, cmd Cmder) int {
18581858
args := cmd.Args()
1859-
if args[0] == "cluster" && args[1] == "getkeysinslot" {
1859+
if args[0] == "cluster" && (args[1] == "getkeysinslot" || args[1] == "countkeysinslot") {
18601860
return args[2].(int)
18611861
}
18621862

0 commit comments

Comments
 (0)