diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2017-12-05 15:29:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 15:29:42 +0100 |
commit | 6830fa25e3c037eda30f8a32c295b76a8c669006 (patch) | |
tree | 9f4a0e9f01c0495be4649d5c55aa5197b4522ac2 /src | |
parent | e4903ce586c191fe4699913a5e360e12812024a3 (diff) | |
parent | 8c7f90e91e1e6324db8a1e9ca20e3dc95ce049d0 (diff) | |
download | redis-6830fa25e3c037eda30f8a32c295b76a8c669006.tar.gz |
Merge pull request #4488 from itamarhaber/debug_arity
Standardizes arity handling of DEBUG
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.c | 5 | ||||
-rw-r--r-- | src/server.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/debug.c b/src/debug.c index 0529e5a85..8e269df3d 100644 --- a/src/debug.c +++ b/src/debug.c @@ -283,11 +283,6 @@ void computeDatasetDigest(unsigned char *final) { } 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")) { void *blenp = addDeferredMultiBulkLength(c); int blen = 0; diff --git a/src/server.c b/src/server.c index af19b5a33..137364ee0 100644 --- a/src/server.c +++ b/src/server.c @@ -258,7 +258,7 @@ struct redisCommand redisCommandTable[] = { {"persist",persistCommand,2,"wF",0,NULL,1,1,1,0,0}, {"slaveof",slaveofCommand,3,"ast",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}, {"subscribe",subscribeCommand,-2,"pslt",0,NULL,0,0,0,0,0}, {"unsubscribe",unsubscribeCommand,-1,"pslt",0,NULL,0,0,0,0,0}, |