chiark / gitweb /
journal/compress: return early in uncompress_startswith
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jul 2014 23:53:58 +0000 (19:53 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Jul 2014 23:06:02 +0000 (19:06 -0400)
commit5e592c66bdf76dfc8445b332f7a5088ca504ee90
tree25dcf4eadb80ccbc142355ca3b30a5e39909dc28
parentabee28c56d523e55751b0c007d0bf812cc285c00
journal/compress: return early in uncompress_startswith

uncompress_startswith would always decode the whole stream, even
if it did not start with the given prefix.

Reallocation policy was also strange.
src/journal/compress.c