Commit 0f5f7e9a authored by antirez's avatar antirez
Browse files

LPOPPUSH renamed into RPOPLPUSH

parent 405b0a6a
...@@ -76,7 +76,7 @@ static struct redisCommand cmdTable[] = { ...@@ -76,7 +76,7 @@ static struct redisCommand cmdTable[] = {
{"lrange",4,REDIS_CMD_INLINE}, {"lrange",4,REDIS_CMD_INLINE},
{"ltrim",4,REDIS_CMD_INLINE}, {"ltrim",4,REDIS_CMD_INLINE},
{"lrem",4,REDIS_CMD_BULK}, {"lrem",4,REDIS_CMD_BULK},
{"lpoppush",3,REDIS_CMD_BULK}, {"rpoplpush",3,REDIS_CMD_BULK},
{"sadd",3,REDIS_CMD_BULK}, {"sadd",3,REDIS_CMD_BULK},
{"srem",3,REDIS_CMD_BULK}, {"srem",3,REDIS_CMD_BULK},
{"smove",4,REDIS_CMD_BULK}, {"smove",4,REDIS_CMD_BULK},
......
...@@ -446,7 +446,7 @@ static void flushdbCommand(redisClient *c); ...@@ -446,7 +446,7 @@ static void flushdbCommand(redisClient *c);
static void flushallCommand(redisClient *c); static void flushallCommand(redisClient *c);
static void sortCommand(redisClient *c); static void sortCommand(redisClient *c);
static void lremCommand(redisClient *c); static void lremCommand(redisClient *c);
static void lpoppushCommand(redisClient *c); static void rpoplpushcommand(redisClient *c);
static void infoCommand(redisClient *c); static void infoCommand(redisClient *c);
static void mgetCommand(redisClient *c); static void mgetCommand(redisClient *c);
static void monitorCommand(redisClient *c); static void monitorCommand(redisClient *c);
...@@ -490,7 +490,7 @@ static struct redisCommand cmdTable[] = { ...@@ -490,7 +490,7 @@ static struct redisCommand cmdTable[] = {
{"lrange",lrangeCommand,4,REDIS_CMD_INLINE}, {"lrange",lrangeCommand,4,REDIS_CMD_INLINE},
{"ltrim",ltrimCommand,4,REDIS_CMD_INLINE}, {"ltrim",ltrimCommand,4,REDIS_CMD_INLINE},
{"lrem",lremCommand,4,REDIS_CMD_BULK}, {"lrem",lremCommand,4,REDIS_CMD_BULK},
{"lpoppush",lpoppushCommand,3,REDIS_CMD_BULK}, {"rpoplpush",rpoplpushcommand,3,REDIS_CMD_BULK},
{"sadd",saddCommand,3,REDIS_CMD_BULK|REDIS_CMD_DENYOOM}, {"sadd",saddCommand,3,REDIS_CMD_BULK|REDIS_CMD_DENYOOM},
{"srem",sremCommand,3,REDIS_CMD_BULK}, {"srem",sremCommand,3,REDIS_CMD_BULK},
{"smove",smoveCommand,4,REDIS_CMD_BULK}, {"smove",smoveCommand,4,REDIS_CMD_BULK},
...@@ -3473,7 +3473,7 @@ static void lremCommand(redisClient *c) { ...@@ -3473,7 +3473,7 @@ static void lremCommand(redisClient *c) {
} }
/* This is the semantic of this command: /* This is the semantic of this command:
* LPOPPUSH srclist dstlist: * RPOPLPUSH srclist dstlist:
* IF LLEN(srclist) > 0 * IF LLEN(srclist) > 0
* element = RPOP srclist * element = RPOP srclist
* LPUSH dstlist element * LPUSH dstlist element
...@@ -3487,7 +3487,7 @@ static void lremCommand(redisClient *c) { ...@@ -3487,7 +3487,7 @@ static void lremCommand(redisClient *c) {
* since the element is not just returned but pushed against another list * since the element is not just returned but pushed against another list
* as well. This command was originally proposed by Ezra Zygmuntowicz. * as well. This command was originally proposed by Ezra Zygmuntowicz.
*/ */
static void lpoppushCommand(redisClient *c) { static void rpoplpushcommand(redisClient *c) {
robj *sobj; robj *sobj;
sobj = lookupKeyWrite(c->db,c->argv[1]); sobj = lookupKeyWrite(c->db,c->argv[1]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment