fixed typos in the comments of rpoplpushHandlePush()
This commit is contained in:
parent
5c0db2df35
commit
1912b1fd64
@ -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 BRPOPLPUSH 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user