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
6b9b958e
Commit
6b9b958e
authored
Jul 18, 2014
by
antirez
Browse files
PING: backward compatible error for wrong number of args.
parent
b3c042cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
6b9b958e
...
...
@@ -2403,7 +2403,8 @@ void authCommand(redisClient *c) {
void
pingCommand
(
redisClient
*
c
)
{
/* The command takes zero or one arguments. */
if
(
c
->
argc
>
2
)
{
addReply
(
c
,
shared
.
syntaxerr
);
addReplyErrorFormat
(
c
,
"wrong number of arguments for '%s' command"
,
c
->
cmd
->
name
);
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