]> git.saurik.com Git - redis.git/commitdiff
Fixed the same problem in ZREVRANK
authorantirez <antirez@gmail.com>
Mon, 15 Mar 2010 18:33:26 +0000 (19:33 +0100)
committerantirez <antirez@gmail.com>
Mon, 15 Mar 2010 18:33:26 +0000 (19:33 +0100)
redis.c
redis.tcl

diff --git a/redis.c b/redis.c
index 9b064c23e305cfe2efb0d8506c588cad82776120..c43f7fd9605a38da950234097c41544b7e5006ef 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -742,7 +742,7 @@ static struct redisCommand cmdTable[] = {
     {"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_BULK,1,1,1},
-    {"zrevrank",zrevrankCommand,3,REDIS_CMD_INLINE,1,1,1},
+    {"zrevrank",zrevrankCommand,3,REDIS_CMD_BULK,1,1,1},
     {"hset",hsetCommand,4,REDIS_CMD_BULK|REDIS_CMD_DENYOOM,1,1,1},
     {"hget",hgetCommand,3,REDIS_CMD_BULK,1,1,1},
     {"hdel",hdelCommand,3,REDIS_CMD_BULK,1,1,1},
index d6308d6b955902bb45d9aa8349af926a50581bd4..f3bf4559720f7dc8d9f50bdfbb4d4bee3d953d10 100644 (file)
--- 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 zrank
+    set setnx rpush lpush lset lrem sadd srem sismember echo getset smove zadd zrem zscore zincrby append zrank zrevrank
 } {
     set ::redis::bulkarg($redis_bulk_cmd) {}
 }