Commit 48781dd9 authored by antirez's avatar antirez
Browse files

RESP3: fix HELLO map len in Sentinel mode.

See #6160.
parent 371ab0cf
...@@ -2444,7 +2444,7 @@ void helloCommand(client *c) { ...@@ -2444,7 +2444,7 @@ void helloCommand(client *c) {
/* Let's switch to the specified RESP mode. */ /* Let's switch to the specified RESP mode. */
c->resp = ver; c->resp = ver;
addReplyMapLen(c,7); addReplyMapLen(c,6 + !server.sentinel_mode);
addReplyBulkCString(c,"server"); addReplyBulkCString(c,"server");
addReplyBulkCString(c,"redis"); addReplyBulkCString(c,"redis");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment