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
48781dd9
Commit
48781dd9
authored
Apr 16, 2020
by
antirez
Browse files
RESP3: fix HELLO map len in Sentinel mode.
See #6160.
parent
371ab0cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
48781dd9
...
@@ -2444,7 +2444,7 @@ void helloCommand(client *c) {
...
@@ -2444,7 +2444,7 @@ void helloCommand(client *c) {
/* Let's switch to the specified RESP mode. */
/* Let's switch to the specified RESP mode. */
c
->
resp
=
ver
;
c
->
resp
=
ver
;
addReplyMapLen
(
c
,
7
);
addReplyMapLen
(
c
,
6
+
!
server
.
sentinel_mode
);
addReplyBulkCString
(
c
,
"server"
);
addReplyBulkCString
(
c
,
"server"
);
addReplyBulkCString
(
c
,
"redis"
);
addReplyBulkCString
(
c
,
"redis"
);
...
...
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