mirror of https://mirror.osredm.com/root/redis.git
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
|
@ -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" {
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue