mirror of
https://github.com/redis/redis.git
synced 2026-03-24 03:33:14 -04:00
Fixes CLUSTER COUNTKEYSINSLOT (#9672)
Introduced via typo in #9504. Also adds a sanity test for coverage.
This commit is contained in:
parent
5f89c1d4f7
commit
48e4d77099
2 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue