]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix bluestore_blob_t::generate_test_instances()
authorKefu Chai <kchai@redhat.com>
Wed, 22 Feb 2017 18:33:50 +0000 (02:33 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Feb 2017 04:17:46 +0000 (12:17 +0800)
commita7c1d3b9d85212add19746cd7fb4365068ab4b15
tree75ec75bdcb05c351ff55304cd75a083d4df7163c
parent64eae76fbe89e6b0ecdd3b49b814d8460f40dcdb
os/bluestore: fix bluestore_blob_t::generate_test_instances()

add extends before marking unused ranges, otherwise add_unused()
asserts if (offset + len < blob_len)
this method is supposed to be used by ceph-dencoder, but
bluestore_blob_t's codec is quite different. we are not testing its
encoding in ceph-dencoder at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/bluestore_types.cc