Fix HELLO reply in Sentinel mode, see #6160.

This commit is contained in:
antirez 2020-04-15 15:59:52 +02:00
parent 552b36e657
commit 7f794a122f

View File

@ -2460,7 +2460,7 @@ void helloCommand(client *c) {
addReplyBulkCString(c,"mode"); addReplyBulkCString(c,"mode");
if (server.sentinel_mode) addReplyBulkCString(c,"sentinel"); if (server.sentinel_mode) addReplyBulkCString(c,"sentinel");
if (server.cluster_enabled) addReplyBulkCString(c,"cluster"); else if (server.cluster_enabled) addReplyBulkCString(c,"cluster");
else addReplyBulkCString(c,"standalone"); else addReplyBulkCString(c,"standalone");
if (!server.sentinel_mode) { if (!server.sentinel_mode) {