]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/bluestore_types: add length to the compression_header_t
authorSage Weil <sage@redhat.com>
Mon, 23 May 2016 19:01:40 +0000 (15:01 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:40:48 +0000 (11:40 -0400)
commita7c9c84eac8003737bcefbb7a77b11e5f99b6b5e
treec2189dfb56c2ad67bcaf1810aa5fe241715e4a3c
parentc4f1facaa5e7fc1020e3c7eb5eae634e1deaa16e
os/bluestore/bluestore_types: add length to the compression_header_t

Snappy fails to decompress if there are extra zeros in the input buffer.
So, store the length explicitly in the header to avoid feeding them into
the decompressor.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h