Commit e7d8b0c7 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Aggregate protocol length going up the stack

parent 624ba365
...@@ -316,6 +316,12 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons ...@@ -316,6 +316,12 @@ size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, cons
cur->remaining--; cur->remaining--;
break; break;
} }
/* Aggregate plen for nested objects */
if (stackidx > 0) {
stack[stackidx-1].plen += cur->plen;
}
stackidx--; stackidx--;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment