提交 cd8bdea3 编写于 作者: A antirez

lpush arguments vector rewrite modified for more speed and to memory leak removal.

上级 b67feeca
......@@ -296,8 +296,8 @@ void pushGenericCommand(redisClient *c, int where) {
* be propagated). */
if (waiting && pushed) {
/* CMD KEY a b C D E */
for (j = 2; j < pushed+2; j++)
rewriteClientCommandArgument(c,j,c->argv[j+waiting]);
for (j = 0; j < waiting; j++) decrRefCount(c->argv[j+2]);
memmove(c->argv+2,c->argv+2+waiting,sizeof(robj*)*pushed);
c->argc -= waiting;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册