From e9b8d4e73a2652cd34396a8d50983558efcf40c3 Mon Sep 17 00:00:00 2001 From: John Sully Date: Mon, 20 May 2019 10:57:37 -0400 Subject: [PATCH] Protocol regression from RESP3 work Former-commit-id: 8c56dbf971aced9e18d170dfffb0c074b545f718 --- src/t_zset.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/t_zset.cpp b/src/t_zset.cpp index ec0c764dd..2f1032fe2 100644 --- a/src/t_zset.cpp +++ b/src/t_zset.cpp @@ -2595,7 +2595,10 @@ void genericZrangebyscoreCommand(client *c, int reverse) { /* No "first" element in the specified interval. */ if (eptr == NULL) { - addReplyNull(c); + if (c->resp < 3) + addReply(c, shared.emptyarray); + else + addReplyNull(c); return; }