From 071da9844ce7b22bd08ea0234655d6482f2d01ad Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 30 Nov 2018 10:50:33 +0100 Subject: [PATCH] RESP3: blocked.c updated. --- src/blocked.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocked.c b/src/blocked.c index 2b43f2b7..1f22a20a 100644 --- a/src/blocked.c +++ b/src/blocked.c @@ -187,7 +187,7 @@ void replyToBlockedClientTimedOut(client *c) { if (c->btype == BLOCKED_LIST || c->btype == BLOCKED_ZSET || c->btype == BLOCKED_STREAM) { - addReply(c,shared.nullmultibulk); + addReplyNull(c); } else if (c->btype == BLOCKED_WAIT) { addReplyLongLong(c,replicationCountAcksByOffset(c->bpop.reploffset)); } else if (c->btype == BLOCKED_MODULE) { @@ -436,8 +436,8 @@ 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. */ - addReplyMultiBulkLen(receiver,1); - addReplyMultiBulkLen(receiver,2); + addReplyArrayLen(receiver,1); + addReplyArrayLen(receiver,2); addReplyBulk(receiver,rl->key); streamPropInfo pi = {