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
6830fa25
Unverified
Commit
6830fa25
authored
Dec 05, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Dec 05, 2017
Browse files
Merge pull request #4488 from itamarhaber/debug_arity
Standardizes arity handling of DEBUG
parents
e4903ce5
8c7f90e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/debug.c
View file @
6830fa25
...
@@ -283,11 +283,6 @@ void computeDatasetDigest(unsigned char *final) {
...
@@ -283,11 +283,6 @@ void computeDatasetDigest(unsigned char *final) {
}
}
void
debugCommand
(
client
*
c
)
{
void
debugCommand
(
client
*
c
)
{
if
(
c
->
argc
==
1
)
{
addReplyError
(
c
,
"You must specify a subcommand for DEBUG. Try DEBUG HELP for info."
);
return
;
}
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
if
(
!
strcasecmp
(
c
->
argv
[
1
]
->
ptr
,
"help"
))
{
void
*
blenp
=
addDeferredMultiBulkLength
(
c
);
void
*
blenp
=
addDeferredMultiBulkLength
(
c
);
int
blen
=
0
;
int
blen
=
0
;
...
...
src/server.c
View file @
6830fa25
...
@@ -258,7 +258,7 @@ struct redisCommand redisCommandTable[] = {
...
@@ -258,7 +258,7 @@ struct redisCommand redisCommandTable[] = {
{
"persist"
,
persistCommand
,
2
,
"wF"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"persist"
,
persistCommand
,
2
,
"wF"
,
0
,
NULL
,
1
,
1
,
1
,
0
,
0
},
{
"slaveof"
,
slaveofCommand
,
3
,
"ast"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"slaveof"
,
slaveofCommand
,
3
,
"ast"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"role"
,
roleCommand
,
1
,
"lst"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"role"
,
roleCommand
,
1
,
"lst"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"debug"
,
debugCommand
,
-
1
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"debug"
,
debugCommand
,
-
2
,
"as"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"config"
,
configCommand
,
-
2
,
"lat"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"config"
,
configCommand
,
-
2
,
"lat"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"subscribe"
,
subscribeCommand
,
-
2
,
"pslt"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"subscribe"
,
subscribeCommand
,
-
2
,
"pslt"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"unsubscribe"
,
unsubscribeCommand
,
-
1
,
"pslt"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
{
"unsubscribe"
,
unsubscribeCommand
,
-
1
,
"pslt"
,
0
,
NULL
,
0
,
0
,
0
,
0
,
0
},
...
...
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