mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
Streams: XREAD ability to block fixed.
This commit is contained in:
@ -412,9 +412,8 @@ void xreadCommand(client *c) {
|
||||
char *o = c->argv[i]->ptr;
|
||||
if (!strcasecmp(o,"BLOCK") && moreargs) {
|
||||
i++;
|
||||
if (getLongLongFromObjectOrReply(c,c->argv[i],&timeout,NULL)
|
||||
!= C_OK) return;
|
||||
if (timeout < 0) timeout = 0;
|
||||
if (getTimeoutFromObjectOrReply(c,c->argv[i],&timeout,
|
||||
UNIT_MILLISECONDS) != C_OK) return;
|
||||
} else if (!strcasecmp(o,"COUNT") && moreargs) {
|
||||
i++;
|
||||
if (getLongLongFromObjectOrReply(c,c->argv[i],&count,NULL) != C_OK)
|
||||
|
Reference in New Issue
Block a user