Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0f31bb5c
Commit
0f31bb5c
authored
Apr 15, 2020
by
antirez
Browse files
Fix HELLO reply in Sentinel mode, see #6160.
parent
b92d9a89
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
0f31bb5c
...
@@ -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