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
7d749d81
Unverified
Commit
7d749d81
authored
Apr 15, 2021
by
guybe7
Committed by
GitHub
Apr 15, 2021
Browse files
Fix error reply in case zset command is not the STORE variant (#8793)
parent
d63d0260
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
7d749d81
...
@@ -2576,8 +2576,8 @@ void zunionInterDiffGenericCommand(client *c, robj *dstkey, int numkeysIndex, in
...
@@ -2576,8 +2576,8 @@ void zunionInterDiffGenericCommand(client *c, robj *dstkey, int numkeysIndex, in
return
;
return
;
if
(
setnum
<
1
)
{
if
(
setnum
<
1
)
{
addReplyError(c,
addReplyError
Format
(
c
,
"at least 1 input key is needed for
ZUNIONSTORE/ZINTERSTORE/ZDIFFSTORE"
);
"at least 1 input key is needed for
%s"
,
c
->
cmd
->
name
);
return
;
return
;
}
}
...
...
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