iolog: fix bug with ret != Z_STREAM_END
authorJens Axboe <axboe@fb.com>
Thu, 19 May 2016 21:35:18 +0000 (15:35 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 19 May 2016 21:35:18 +0000 (15:35 -0600)
commit040238ec861c6cf3ac3afdf2a6735ca23ef1cee5
tree954ed06c073e8e42b27fe526e53c4305a9b4416e
parentd0d0cf0a18078a87befaf6bdc1519622ea5bc77c
iolog: fix bug with ret != Z_STREAM_END

Before adding more chunks, adjust the previous chunk size. This
fixes an inflate issue, where we'd get Z_DATA_ERROR because the
middle chunk did not have the correct length.

Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c