]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include/object: pass "snapid_t&" to bound_encode() 11552/head
authorKefu Chai <kchai@redhat.com>
Wed, 19 Oct 2016 09:01:23 +0000 (17:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 19 Oct 2016 09:04:49 +0000 (17:04 +0800)
commitdbebe41ba53e7390191d24222877a04d705b16f9
tree7cfb9a8c5c1b00475b077048e72b3f3042dbb50a
parent4d9ce9e9a5493cbd0d6485507350b6c7cf5e1d4c
include/object: pass "snapid_t&" to bound_encode()

otherwise the STL container's encoders will segfault when trying to
figure out the element size: they use "denc(*(A*)nullptr, elem_size)"
to do the calculation.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/object.h