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
6201f7b4
Commit
6201f7b4
authored
Jul 17, 2018
by
antirez
Browse files
Streams: better error when $ is given with XREADGROUP.
parent
4bff45c7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
6201f7b4
...
...
@@ -1352,8 +1352,11 @@ void xreadCommand(client *c) {
if (strcmp(c->argv[i]->ptr,"$") == 0) {
if (xreadgroup) {
addReplyError(c,"The $ ID can be specified only when calling "
"XREAD without GROUP option.");
addReplyError(c,"The $ ID is meaningless in the context of "
"XREADGROUP: you want to read the history of "
"this consumer by specifying a proper ID, or "
"use the > ID to get new messages. The $ ID would "
"just return an empty result set.");
goto cleanup;
}
if (o) {
...
...
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