From: antirez Date: Sun, 1 May 2011 22:36:25 +0000 (+0200) Subject: Eval command table fixed to return the keys arguments of the command. We use zunionIn... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/497fc8775fd4b85289a6998bb4eaddbe657e6be7 Eval command table fixed to return the keys arguments of the command. We use zunionInterGetKeys() as it ZUNION/ZINTER have exactly the same semantic with a prefixed number of keys followed by key names. --- diff --git a/src/redis.c b/src/redis.c index 931eb1d7..7c97e6dc 100644 --- a/src/redis.c +++ b/src/redis.c @@ -194,7 +194,7 @@ struct redisCommand redisCommandTable[] = { {"dump",dumpCommand,2,0,NULL,0,0,0,0,0}, {"object",objectCommand,-2,0,NULL,0,0,0,0,0}, {"client",clientCommand,-2,0,NULL,0,0,0,0,0}, - {"eval",evalCommand,-3,0,NULL,0,0,0,0,0} + {"eval",evalCommand,-3,REDIS_CMD_DENYOOM,zunionInterGetKeys,0,0,0,0,0} }; /*============================ Utility functions ============================ */