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
7eba5c30
Commit
7eba5c30
authored
Jun 07, 2020
by
xhe
Browse files
return the correct proto version
HELLO should return the current proto version, while the code hardcoded 3
parent
44b76a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
7eba5c30
...
@@ -2522,7 +2522,7 @@ void helloCommand(client *c) {
...
@@ -2522,7 +2522,7 @@ void helloCommand(client *c) {
addReplyBulkCString
(
c
,
REDIS_VERSION
);
addReplyBulkCString
(
c
,
REDIS_VERSION
);
addReplyBulkCString
(
c
,
"proto"
);
addReplyBulkCString
(
c
,
"proto"
);
addReplyLongLong
(
c
,
3
);
addReplyLongLong
(
c
,
ver
);
addReplyBulkCString
(
c
,
"id"
);
addReplyBulkCString
(
c
,
"id"
);
addReplyLongLong
(
c
,
c
->
id
);
addReplyLongLong
(
c
,
c
->
id
);
...
...
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