From 4e30a5b4e53a4d1580f8d7cca8a8eac11e36ce4d Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 17 Jul 2019 22:57:52 -0400 Subject: [PATCH] Another RESP3 regression --- 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 456348e10..f5047be9f 100644 --- a/src/t_zset.cpp +++ b/src/t_zset.cpp @@ -2665,7 +2665,10 @@ void genericZrangebyscoreCommand(client *c, int reverse) { /* No "first" element in the specified interval. */ if (ln == NULL) { - addReplyNull(c); + if (c->resp < 3) + addReply(c, shared.emptyarray); + else + addReplyNull(c); return; }