Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8a979f03
Commit
8a979f03
authored
Nov 08, 2010
by
Damian Janowski & Michel Martens
Committed by
Michel Martens
Nov 29, 2010
Browse files
Fix case in RPOPLPUSH.
parent
d8d528e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
8a979f03
...
@@ -96,7 +96,7 @@ struct redisCommand readonlyCommandTable[] = {
...
@@ -96,7 +96,7 @@ struct redisCommand readonlyCommandTable[] = {
{
"lrange"
,
lrangeCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"lrange"
,
lrangeCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"ltrim"
,
ltrimCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"ltrim"
,
ltrimCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"lrem"
,
lremCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"lrem"
,
lremCommand
,
4
,
0
,
NULL
,
1
,
1
,
1
},
{
"rpoplpush"
,
rpoplpush
c
ommand
,
3
,
REDIS_CMD_DENYOOM
,
NULL
,
1
,
2
,
1
},
{
"rpoplpush"
,
rpoplpush
C
ommand
,
3
,
REDIS_CMD_DENYOOM
,
NULL
,
1
,
2
,
1
},
{
"sadd"
,
saddCommand
,
3
,
REDIS_CMD_DENYOOM
,
NULL
,
1
,
1
,
1
},
{
"sadd"
,
saddCommand
,
3
,
REDIS_CMD_DENYOOM
,
NULL
,
1
,
1
,
1
},
{
"srem"
,
sremCommand
,
3
,
0
,
NULL
,
1
,
1
,
1
},
{
"srem"
,
sremCommand
,
3
,
0
,
NULL
,
1
,
1
,
1
},
{
"smove"
,
smoveCommand
,
4
,
0
,
NULL
,
1
,
2
,
1
},
{
"smove"
,
smoveCommand
,
4
,
0
,
NULL
,
1
,
2
,
1
},
...
...
src/redis.h
View file @
8a979f03
...
@@ -932,7 +932,7 @@ void flushdbCommand(redisClient *c);
...
@@ -932,7 +932,7 @@ void flushdbCommand(redisClient *c);
void
flushallCommand
(
redisClient
*
c
);
void
flushallCommand
(
redisClient
*
c
);
void
sortCommand
(
redisClient
*
c
);
void
sortCommand
(
redisClient
*
c
);
void
lremCommand
(
redisClient
*
c
);
void
lremCommand
(
redisClient
*
c
);
void
rpoplpush
c
ommand
(
redisClient
*
c
);
void
rpoplpush
C
ommand
(
redisClient
*
c
);
void
infoCommand
(
redisClient
*
c
);
void
infoCommand
(
redisClient
*
c
);
void
mgetCommand
(
redisClient
*
c
);
void
mgetCommand
(
redisClient
*
c
);
void
monitorCommand
(
redisClient
*
c
);
void
monitorCommand
(
redisClient
*
c
);
...
...
src/t_list.c
View file @
8a979f03
...
@@ -618,7 +618,7 @@ void lremCommand(redisClient *c) {
...
@@ -618,7 +618,7 @@ 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.
*/
*/
void
rpoplpush
c
ommand
(
redisClient
*
c
)
{
void
rpoplpush
C
ommand
(
redisClient
*
c
)
{
robj
*
sobj
,
*
value
;
robj
*
sobj
,
*
value
;
if
((
sobj
=
lookupKeyWriteOrReply
(
c
,
c
->
argv
[
1
],
shared
.
nullbulk
))
==
NULL
||
if
((
sobj
=
lookupKeyWriteOrReply
(
c
,
c
->
argv
[
1
],
shared
.
nullbulk
))
==
NULL
||
checkType
(
c
,
sobj
,
REDIS_LIST
))
return
;
checkType
(
c
,
sobj
,
REDIS_LIST
))
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment