Co-authored-by: Oran Agra <oran@redislabs.com>
This commit is contained in:
xhe 2020-12-24 17:03:22 +08:00 committed by GitHub
parent 60f13e7a86
commit 456c347d45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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