Lazyfree: client output buffers no longer use Redis Objects.

This commit is contained in:
antirez
2015-07-31 14:59:54 +02:00
parent 0c05436cef
commit 4ff3c17a20
2 changed files with 69 additions and 94 deletions

View File

@ -387,9 +387,9 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
reply = sdsnewlen(c->buf,c->bufpos);
c->bufpos = 0;
while(listLength(c->reply)) {
robj *o = listNodeValue(listFirst(c->reply));
sds o = listNodeValue(listFirst(c->reply));
reply = sdscatlen(reply,o->ptr,sdslen(o->ptr));
reply = sdscatsds(reply,o);
listDelNode(c->reply,listFirst(c->reply));
}
}