Fixes CLUSTER COUNTKEYSINSLOT (#9672)

Introduced via typo in #9504. 
Also adds a sanity test for coverage.
This commit is contained in:
Itamar Haber 2021-10-24 12:32:53 +03:00 committed by GitHub
parent 5f89c1d4f7
commit 48e4d77099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -561,7 +561,7 @@ struct redisCommand clusterSubcommands[] = {
{"count-failure-reports",clusterCommand,3,
"admin ok-stale random"},
{"countkeysinslots",clusterCommand,3,
{"countkeysinslot",clusterCommand,3,
"ok-stale random"},
{"delslots",clusterCommand,-3,

View File

@ -54,6 +54,11 @@ test "Nodes should report cluster_state is ok now" {
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" {
cluster_write_test 0
}