Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
48e4d770
Unverified
Commit
48e4d770
authored
Oct 24, 2021
by
Itamar Haber
Committed by
GitHub
Oct 24, 2021
Browse files
Fixes `CLUSTER COUNTKEYSINSLOT` (#9672)
Introduced via typo in #9504. Also adds a sanity test for coverage.
parent
5f89c1d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
48e4d770
...
@@ -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"
},
{
"countkeysinslot
s
"
,
clusterCommand
,
3
,
{
"countkeysinslot"
,
clusterCommand
,
3
,
"ok-stale random"
},
"ok-stale random"
},
{
"delslots"
,
clusterCommand
,
-
3
,
{
"delslots"
,
clusterCommand
,
-
3
,
...
...
tests/cluster/tests/00-base.tcl
View file @
48e4d770
...
@@ -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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment