Bugfix: PEL is incorrect when consumer is blocked using xreadgroup with NOACK option.

Save NOACK option into client.blockingState structure.
This commit is contained in:
dejun.xdj
2018-07-09 19:26:40 +08:00
committed by Salvatore Sanfilippo
parent b67f027699
commit 61f12973f7
4 changed files with 6 additions and 1 deletions

View File

@ -1426,6 +1426,7 @@ void xreadCommand(client *c) {
incrRefCount(consumername);
c->bpop.xread_group = groupname;
c->bpop.xread_consumer = consumername;
c->bpop.xread_group_noack = noack;
} else {
c->bpop.xread_group = NULL;
c->bpop.xread_consumer = NULL;