CG: Replication WIP 1: XREADGROUP and XCLAIM propagated as XCLAIM.

This commit is contained in:
antirez
2018-03-19 14:16:13 +01:00
parent 3c2a952912
commit 0b58ad301e
5 changed files with 93 additions and 16 deletions

View File

@ -348,9 +348,14 @@ void handleClientsBlockedOnKeys(void) {
addReplyMultiBulkLen(receiver,1);
addReplyMultiBulkLen(receiver,2);
addReplyBulk(receiver,rl->key);
streamPropInfo pi = {
rl->key,
receiver->bpop.xread_group
};
streamReplyWithRange(receiver,s,&start,NULL,
receiver->bpop.xread_count,
0, group, consumer, 0);
0, group, consumer, 0, &pi);
}
}
}