summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-05-05 17:35:33 +0200
committerantirez <antirez@gmail.com>2016-05-05 17:35:51 +0200
commitf01a2714582a9a916b41e6cb90e42474a104925d (patch)
treeedf047b26fcfc5d08ac042ef17b17a407927d86d
parent1189a4eae6d009fc0da8d50fd542ba1391542165 (diff)
downloadredis-f01a2714582a9a916b41e6cb90e42474a104925d.tar.gz
Revert "Fix commandCommand arity"
This reverts commit 1189a4eae6d009fc0da8d50fd542ba1391542165. Actually this is wrong, the command can be called without args at all.
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index a5eeb56a5..254c40a9b 100644
--- a/src/server.c
+++ b/src/server.c
@@ -281,7 +281,7 @@ struct redisCommand redisCommandTable[] = {
{"bitcount",bitcountCommand,-2,"r",0,NULL,1,1,1,0,0},
{"bitpos",bitposCommand,-3,"r",0,NULL,1,1,1,0,0},
{"wait",waitCommand,3,"s",0,NULL,0,0,0,0,0},
- {"command",commandCommand,1,"lt",0,NULL,0,0,0,0,0},
+ {"command",commandCommand,0,"lt",0,NULL,0,0,0,0,0},
{"geoadd",geoaddCommand,-5,"wm",0,NULL,1,1,1,0,0},
{"georadius",georadiusCommand,-6,"w",0,NULL,1,1,1,0,0},
{"georadiusbymember",georadiusByMemberCommand,-5,"w",0,NULL,1,1,1,0,0},