From 8a979f039011a4672b1052ee84ca56f214e6a681 Mon Sep 17 00:00:00 2001 From: Damian Janowski & Michel Martens Date: Mon, 8 Nov 2010 10:43:21 -0300 Subject: [PATCH 1/1] Fix case in RPOPLPUSH. --- src/redis.c | 2 +- src/redis.h | 2 +- src/t_list.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/redis.c b/src/redis.c index 5b39c011..1f7e7d26 100644 --- a/src/redis.c +++ b/src/redis.c @@ -96,7 +96,7 @@ struct redisCommand readonlyCommandTable[] = { {"lrange",lrangeCommand,4,0,NULL,1,1,1}, {"ltrim",ltrimCommand,4,0,NULL,1,1,1}, {"lrem",lremCommand,4,0,NULL,1,1,1}, - {"rpoplpush",rpoplpushcommand,3,REDIS_CMD_DENYOOM,NULL,1,2,1}, + {"rpoplpush",rpoplpushCommand,3,REDIS_CMD_DENYOOM,NULL,1,2,1}, {"sadd",saddCommand,3,REDIS_CMD_DENYOOM,NULL,1,1,1}, {"srem",sremCommand,3,0,NULL,1,1,1}, {"smove",smoveCommand,4,0,NULL,1,2,1}, diff --git a/src/redis.h b/src/redis.h index 11e4e557..6bd0fd5d 100644 --- a/src/redis.h +++ b/src/redis.h @@ -932,7 +932,7 @@ void flushdbCommand(redisClient *c); void flushallCommand(redisClient *c); void sortCommand(redisClient *c); void lremCommand(redisClient *c); -void rpoplpushcommand(redisClient *c); +void rpoplpushCommand(redisClient *c); void infoCommand(redisClient *c); void mgetCommand(redisClient *c); void monitorCommand(redisClient *c); diff --git a/src/t_list.c b/src/t_list.c index 42e1d587..10e7f72c 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -618,7 +618,7 @@ void lremCommand(redisClient *c) { * since the element is not just returned but pushed against another list * as well. This command was originally proposed by Ezra Zygmuntowicz. */ -void rpoplpushcommand(redisClient *c) { +void rpoplpushCommand(redisClient *c) { robj *sobj, *value; if ((sobj = lookupKeyWriteOrReply(c,c->argv[1],shared.nullbulk)) == NULL || checkType(c,sobj,REDIS_LIST)) return; -- 2.45.2