summaryrefslogtreecommitdiff
path: root/src/t_list.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-09-12 10:04:23 +0200
committerantirez <antirez@gmail.com>2011-09-12 10:04:23 +0200
commit48082cc044202878364edce68a1323a96d2d40b4 (patch)
tree76bf40cb1b43f37105e3b4851b2ad2122907ff8f /src/t_list.c
parentc47d152c8d96415de1af994b1a4bb3e0347caef3 (diff)
downloadredis-48082cc044202878364edce68a1323a96d2d40b4.tar.gz
fixed typos in the comments of rpoplpushHandlePush()
Diffstat (limited to 'src/t_list.c')
-rw-r--r--src/t_list.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/t_list.c b/src/t_list.c
index 279bcaf59..0690fd2fa 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -653,10 +653,12 @@ void rpoplpushHandlePush(redisClient *origclient, redisClient *c, robj *dstkey,
}
listTypePush(dstobj,value,REDIS_HEAD);
/* If we are pushing as a result of LPUSH against a key
- * watched by BLPOPLPUSH, we need to rewrite the command vector.
- * But if this is called directly by RPOPLPUSH (either directly
+ * watched by BRPOPLPUSH, we need to rewrite the command vector
+ * as an LPUSH.
+ *
+ * If this is called directly by RPOPLPUSH (either directly
* 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) {
aux = createStringObject("LPUSH",5);
rewriteClientCommandVector(origclient,3,aux,dstkey,value);