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