Commit 0f31bb5c authored by antirez's avatar antirez
Browse files

Fix HELLO reply in Sentinel mode, see #6160.

parent b92d9a89
...@@ -2460,7 +2460,7 @@ void helloCommand(client *c) { ...@@ -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) {
......
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