mirror of
https://github.com/fluencelabs/redis
synced 2025-03-24 11:30:50 +00:00
Streams: fix COUNT parsing, issue #4433.
This commit is contained in:
parent
abab0b7817
commit
020fe26bd6
@ -785,7 +785,7 @@ void xrangeCommand(client *c) {
|
||||
if (streamParseIDOrReply(c,c->argv[3],&endid,UINT64_MAX) == C_ERR) return;
|
||||
|
||||
/* Parse the COUNT option if any. */
|
||||
if (c->argc > 4) {
|
||||
if (c->argc > 5) {
|
||||
if (strcasecmp(c->argv[4]->ptr,"COUNT") == 0) {
|
||||
if (getLongLongFromObjectOrReply(c,c->argv[5],&count,NULL) != C_OK)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user