From cc3b01c30a2acb426d93799f2f3287f27b3d7a56 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 15 Mar 2010 19:33:01 +0100 Subject: [PATCH] Fixed a ZRANK bug --- redis.c | 2 +- redis.tcl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redis.c b/redis.c index b45b86184..9b064c23e 100644 --- a/redis.c +++ b/redis.c @@ -741,7 +741,7 @@ static struct redisCommand cmdTable[] = { {"zrevrange",zrevrangeCommand,-4,REDIS_CMD_INLINE,1,1,1}, {"zcard",zcardCommand,2,REDIS_CMD_INLINE,1,1,1}, {"zscore",zscoreCommand,3,REDIS_CMD_BULK|REDIS_CMD_DENYOOM,1,1,1}, - {"zrank",zrankCommand,3,REDIS_CMD_INLINE,1,1,1}, + {"zrank",zrankCommand,3,REDIS_CMD_BULK,1,1,1}, {"zrevrank",zrevrankCommand,3,REDIS_CMD_INLINE,1,1,1}, {"hset",hsetCommand,4,REDIS_CMD_BULK|REDIS_CMD_DENYOOM,1,1,1}, {"hget",hgetCommand,3,REDIS_CMD_BULK,1,1,1}, diff --git a/redis.tcl b/redis.tcl index 640a0ae96..d6308d6b9 100644 --- a/redis.tcl +++ b/redis.tcl @@ -20,7 +20,7 @@ array set ::redis::multibulkarg {} # Flag commands requiring last argument as a bulk write operation foreach redis_bulk_cmd { - set setnx rpush lpush lset lrem sadd srem sismember echo getset smove zadd zrem zscore zincrby append + set setnx rpush lpush lset lrem sadd srem sismember echo getset smove zadd zrem zscore zincrby append zrank } { set ::redis::bulkarg($redis_bulk_cmd) {} }