mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Fixed a ZRANK bug
This commit is contained in:
parent
bae2c7ec6b
commit
cc3b01c30a
2
redis.c
2
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},
|
||||
|
@ -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) {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user