RESP3: fix HELLO map len in Sentinel mode.

See #6160.
This commit is contained in:
antirez 2020-04-16 11:21:52 +02:00
parent 503a5a24fb
commit c9388ecc73

View File

@ -2444,7 +2444,7 @@ void helloCommand(client *c) {
/* Let's switch to the specified RESP mode. */
c->resp = ver;
addReplyMapLen(c,7);
addReplyMapLen(c,6 + !server.sentinel_mode);
addReplyBulkCString(c,"server");
addReplyBulkCString(c,"redis");