From 497fc8775fd4b85289a6998bb4eaddbe657e6be7 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 2 May 2011 00:36:25 +0200 Subject: [PATCH] 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. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ============================ */ -- 2.47.2