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
8d8755c7
Commit
8d8755c7
authored
Mar 06, 2018
by
antirez
Browse files
CG: throw an error if XREADGROUP is used without GROUP.
parent
d4f81ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
8d8755c7
...
...
@@ -1131,6 +1131,13 @@ void xreadCommand(client *c) {
return
;
}
/* If the user specified XREADGROUP then it must also
* provide the GROUP option. */
if
(
xreadgroup
&&
groupname
==
NULL
)
{
addReplyError
(
c
,
"Missing GROUP option for XREADGROUP"
);
return
;
}
/* Parse the IDs and resolve the group name. */
if
(
streams_count
>
STREAMID_STATIC_VECTOR_LEN
)
ids
=
zmalloc
(
sizeof
(
streamID
)
*
streams_count
);
...
...
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