mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 18:21:21 +00:00
Streams: more internal preparation for blocking XREAD.
This commit is contained in:
@ -726,7 +726,7 @@ void blockingPopGenericCommand(client *c, int where) {
|
||||
}
|
||||
|
||||
/* If the list is empty or the key does not exists we must block */
|
||||
blockForKeys(c, c->argv + 1, c->argc - 2, timeout, NULL);
|
||||
blockForKeys(c,BLOCKED_LIST,c->argv + 1,c->argc - 2,timeout,NULL,NULL);
|
||||
}
|
||||
|
||||
void blpopCommand(client *c) {
|
||||
@ -752,7 +752,7 @@ void brpoplpushCommand(client *c) {
|
||||
addReply(c, shared.nullbulk);
|
||||
} else {
|
||||
/* The list is empty and the client blocks. */
|
||||
blockForKeys(c, c->argv + 1, 1, timeout, c->argv[2]);
|
||||
blockForKeys(c,BLOCKED_LIST,c->argv + 1,1,timeout,c->argv[2],NULL);
|
||||
}
|
||||
} else {
|
||||
if (key->type != OBJ_LIST) {
|
||||
|
Reference in New Issue
Block a user