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
c79389f0
Unverified
Commit
c79389f0
authored
Jan 26, 2022
by
guybe7
Committed by
GitHub
Jan 26, 2022
Browse files
Reply for command args should be an array, not a set (#10188)
parent
7fdcada6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
c79389f0
...
@@ -4177,7 +4177,7 @@ void addReplyFlagsForArg(client *c, uint64_t flags) {
...
@@ -4177,7 +4177,7 @@ void addReplyFlagsForArg(client *c, uint64_t flags) {
}
}
void
addReplyCommandArgList
(
client
*
c
,
struct
redisCommandArg
*
args
,
int
num_args
)
{
void
addReplyCommandArgList
(
client
*
c
,
struct
redisCommandArg
*
args
,
int
num_args
)
{
addReply
Set
Len
(
c
,
num_args
);
addReply
Array
Len
(
c
,
num_args
);
for
(
int
j
=
0
;
j
<
num_args
;
j
++
)
{
for
(
int
j
=
0
;
j
<
num_args
;
j
++
)
{
/* Count our reply len so we don't have to use deferred reply. */
/* Count our reply len so we don't have to use deferred reply. */
long
maplen
=
2
;
long
maplen
=
2
;
...
...
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