提交 b9031458 编写于 作者: A antirez

useless double if removed.

上级 b0a2e340
......@@ -774,11 +774,10 @@ int processMultibulkBuffer(redisClient *c) {
* avoiding a large copy of data. */
c->querybuf = sdsrange(c->querybuf,pos,-1);
pos = 0;
}
/* Hint the sds library about the amount of bytes this string is
* going to contain. */
if (ll >= REDIS_MBULK_BIG_ARG)
/* Hint the sds library about the amount of bytes this string is
* going to contain. */
c->querybuf = sdsMakeRoomFor(c->querybuf,ll+2);
}
c->bulklen = ll;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册