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
d306d861
Unverified
Commit
d306d861
authored
Jun 20, 2023
by
Binbin
Committed by
GitHub
Jun 20, 2023
Browse files
Fix ZRANK/ZREVRANK reply_schema description (#12331)
The parameter name is WITHSCORE instead of WITHSCORES.
parent
13e17e94
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/commands/zrank.json
View file @
d306d861
...
...
@@ -47,11 +47,11 @@
},
{
"type"
:
"integer"
,
"description"
:
"The rank of the member when 'WITHSCORE
S
' is not used."
"description"
:
"The rank of the member when 'WITHSCORE' is not used."
},
{
"type"
:
"array"
,
"description"
:
"The rank and score of the member when 'WITHSCORE
S
' is used."
,
"description"
:
"The rank and score of the member when 'WITHSCORE' is used."
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
...
...
src/commands/zrevrank.json
View file @
d306d861
...
...
@@ -47,11 +47,11 @@
},
{
"type"
:
"integer"
,
"description"
:
"The rank of the member when 'WITHSCORE
S
' is not used."
"description"
:
"The rank of the member when 'WITHSCORE' is not used."
},
{
"type"
:
"array"
,
"description"
:
"The rank and score of the member when 'WITHSCORE
S
' is used."
,
"description"
:
"The rank and score of the member when 'WITHSCORE' is used."
,
"minItems"
:
2
,
"maxItems"
:
2
,
"items"
:
[
...
...
tests/unit/type/zset.tcl
View file @
d306d861
...
...
@@ -450,7 +450,7 @@ start_server {tags {"zset"}} {
assert_equal $nullres
[
r zrevrank zranktmp foo
]
r readraw 0
# withscore
s
# withscore
set nullres
{
*-1
}
if
{
$::force
_resp3
}
{
set nullres
{
_
}
...
...
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