diff options
author | antirez <antirez@gmail.com> | 2018-12-10 12:35:28 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-01-09 17:00:30 +0100 |
commit | 8042afb246daaaaeb5a76614b2791c082ecb6654 (patch) | |
tree | bb8978884014bbafc946f8637d8171e641055ee2 /src/debug.c | |
parent | 4e2dd54df0a0fc305024a0b0df9d8a604ab7f6e1 (diff) | |
download | redis-8042afb246daaaaeb5a76614b2791c082ecb6654.tar.gz |
RESP3: Fix addReplyBool() RESP2/3 output.
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 5 |
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"); |