RESP3: t_stream.c updated.

This commit is contained in:
antirez
2018-12-03 16:24:04 +01:00
parent baf5b3f93a
commit 8a0391fbc9
2 changed files with 49 additions and 40 deletions

View File

@ -436,8 +436,12 @@ void handleClientsBlockedOnKeys(void) {
* the name of the stream and the data we
* extracted from it. Wrapped in a single-item
* array, since we have just one key. */
addReplyArrayLen(receiver,1);
addReplyArrayLen(receiver,2);
if (receiver->resp == 2) {
addReplyArrayLen(receiver,1);
addReplyArrayLen(receiver,2);
} else {
addReplyMapLen(receiver,1);
}
addReplyBulk(receiver,rl->key);
streamPropInfo pi = {