summaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-12-10 12:35:28 +0100
committerantirez <antirez@gmail.com>2019-01-09 17:00:30 +0100
commit8042afb246daaaaeb5a76614b2791c082ecb6654 (patch)
treebb8978884014bbafc946f8637d8171e641055ee2 /src/debug.c
parent4e2dd54df0a0fc305024a0b0df9d8a604ab7f6e1 (diff)
downloadredis-8042afb246daaaaeb5a76614b2791c082ecb6654.tar.gz
RESP3: Fix addReplyBool() RESP2/3 output.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index d43dcc97a..9029871ea 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -551,7 +551,10 @@ NULL
for (int j = 0; j < 3; j++) addReplyLongLong(c,j);
} else if (!strcasecmp(name,"map")) {
addReplyMapLen(c,3);
- for (int j = 0; j < 3; j++) addReplyLongLong(c,j);
+ for (int j = 0; j < 3; j++) {
+ addReplyLongLong(c,j);
+ addReplyBool(c, j == 1);
+ }
} else if (!strcasecmp(name,"attrib")) {
addReplyAttributeLen(c,1);
addReplyBulkCString(c,"key-popularity");