]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: version shard and spanning blob buffers, not each blob
authorSage Weil <sage@redhat.com>
Wed, 14 Dec 2016 20:09:36 +0000 (15:09 -0500)
committerSage Weil <sage@redhat.com>
Wed, 14 Dec 2016 20:09:36 +0000 (15:09 -0500)
commit90ba4ee6b475805ab438337c69cc8036a54d3c76
treee7a7f7e6836a40c45da4c059a8ecb3c60e27ae4d
parent2af1b029ca01ee0108a17414a7ff120095189104
os/bluestore: version shard and spanning blob buffers, not each blob

Instead of versioning every blob encoding, and adding a full byte
per blob, instead version the entire shard or spanning blob
chunk, since they are always encoded together.

We overload the 'features' argument here to pass through a
struct_v.  This is slightly abusing an argument that is normally
used for feature bits, but only slightly.

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