From: antirez Date: Tue, 28 Feb 2012 15:17:55 +0000 (+0100) Subject: Var renamed into pushGenericCommand() to better reflect what it means. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/edba65d09084dfaa6f44a6f182c6d519e249a0c4 Var renamed into pushGenericCommand() to better reflect what it means. --- diff --git a/src/t_list.c b/src/t_list.c index 3742ec49..f0c6790e 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -259,7 +259,7 @@ void listTypeConvert(robj *subject, int enc) { *----------------------------------------------------------------------------*/ void pushGenericCommand(redisClient *c, int where) { - int j, addlen = 0, pushed = 0; + int j, waiting = 0, pushed = 0; robj *lobj = lookupKeyWrite(c->db,c->argv[1]); int may_have_waiting_clients = (lobj == NULL); @@ -272,7 +272,7 @@ void pushGenericCommand(redisClient *c, int where) { c->argv[j] = tryObjectEncoding(c->argv[j]); if (may_have_waiting_clients) { if (handleClientsWaitingListPush(c,c->argv[1],c->argv[j])) { - addlen++; + waiting++; continue; } else { may_have_waiting_clients = 0; @@ -285,7 +285,7 @@ void pushGenericCommand(redisClient *c, int where) { listTypePush(lobj,c->argv[j],where); pushed++; } - addReplyLongLong(c,addlen + (lobj ? listTypeLength(lobj) : 0)); + addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0)); if (pushed) signalModifiedKey(c->db,c->argv[1]); server.dirty += pushed; }