Unverified Commit 48e4d770 authored by Itamar Haber's avatar Itamar Haber Committed by GitHub
Browse files

Fixes `CLUSTER COUNTKEYSINSLOT` (#9672)

Introduced via typo in #9504. 
Also adds a sanity test for coverage.
parent 5f89c1d4
...@@ -561,7 +561,7 @@ struct redisCommand clusterSubcommands[] = { ...@@ -561,7 +561,7 @@ struct redisCommand clusterSubcommands[] = {
{"count-failure-reports",clusterCommand,3, {"count-failure-reports",clusterCommand,3,
"admin ok-stale random"}, "admin ok-stale random"},
{"countkeysinslots",clusterCommand,3, {"countkeysinslot",clusterCommand,3,
"ok-stale random"}, "ok-stale random"},
{"delslots",clusterCommand,-3, {"delslots",clusterCommand,-3,
......
...@@ -54,6 +54,11 @@ test "Nodes should report cluster_state is ok now" { ...@@ -54,6 +54,11 @@ test "Nodes should report cluster_state is ok now" {
assert_cluster_state ok assert_cluster_state ok
} }
test "Sanity for CLUSTER COUNTKEYSINSLOT" {
set reply [R 0 CLUSTER COUNTKEYSINSLOT 0]
assert {$reply eq 0}
}
test "It is possible to write and read from the cluster" { test "It is possible to write and read from the cluster" {
cluster_write_test 0 cluster_write_test 0
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment