Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
7f794a12
Commit
7f794a12
authored
Apr 15, 2020
by
antirez
Browse files
Fix HELLO reply in Sentinel mode, see #6160.
parent
552b36e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
7f794a12
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment