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
21f92e9e
Commit
21f92e9e
authored
Feb 25, 2019
by
antirez
Browse files
RESP3: SETNAME option for HELLO.
parent
d4d15315
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
21f92e9e
...
...
@@ -2057,6 +2057,9 @@ void helloCommand(client *c) {
return
;
}
j
+=
2
;
}
else
if
(
!
strcasecmp
(
opt
,
"SETNAME"
)
&&
moreargs
)
{
if
(
clientSetNameOrReply
(
c
,
c
->
argv
[
j
+
1
])
==
C_ERR
)
return
;
j
++
;
}
else
{
addReplyErrorFormat
(
c
,
"Syntax error in HELLO option '%s'"
,
opt
);
return
;
...
...
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