mirror of
https://github.com/fluencelabs/redis
synced 2025-03-31 14:51:04 +00:00
Streams: better error when $ is given with XREADGROUP.
This commit is contained in:
parent
4bff45c7a6
commit
6201f7b4e0
@ -1352,8 +1352,11 @@ void xreadCommand(client *c) {
|
|||||||
|
|
||||||
if (strcmp(c->argv[i]->ptr,"$") == 0) {
|
if (strcmp(c->argv[i]->ptr,"$") == 0) {
|
||||||
if (xreadgroup) {
|
if (xreadgroup) {
|
||||||
addReplyError(c,"The $ ID can be specified only when calling "
|
addReplyError(c,"The $ ID is meaningless in the context of "
|
||||||
"XREAD without GROUP option.");
|
"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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
if (o) {
|
if (o) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user