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
48082cc0
Commit
48082cc0
authored
Sep 12, 2011
by
antirez
Browse files
fixed typos in the comments of rpoplpushHandlePush()
parent
c47d152c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_list.c
View file @
48082cc0
...
@@ -653,10 +653,12 @@ void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey,
...
@@ -653,10 +653,12 @@ void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey,
}
}
listTypePush
(
dstobj
,
value
,
REDIS_HEAD
);
listTypePush
(
dstobj
,
value
,
REDIS_HEAD
);
/* If we are pushing as a result of LPUSH against a key
/* If we are pushing as a result of LPUSH against a key
* watched by BLPOPLPUSH, we need to rewrite the command vector.
* watched by BRPOPLPUSH, we need to rewrite the command vector
* But if this is called directly by RPOPLPUSH (either directly
* as an LPUSH.
*
* If this is called directly by RPOPLPUSH (either directly
* or via a BRPOPLPUSH where the popped list exists)
* or via a BRPOPLPUSH where the popped list exists)
* we should replicate the
B
RPOPLPUSH command itself. */
* we should replicate the RPOPLPUSH command itself. */
if
(
c
!=
origclient
)
{
if
(
c
!=
origclient
)
{
aux
=
createStringObject
(
"LPUSH"
,
5
);
aux
=
createStringObject
(
"LPUSH"
,
5
);
rewriteClientCommandVector
(
origclient
,
3
,
aux
,
dstkey
,
value
);
rewriteClientCommandVector
(
origclient
,
3
,
aux
,
dstkey
,
value
);
...
...
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