]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
neorados: specify alignments for aligned_storage
authorCasey Bodley <cbodley@redhat.com>
Mon, 24 Nov 2025 21:35:07 +0000 (16:35 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 25 Nov 2025 13:01:47 +0000 (08:01 -0500)
commit7f388199b5a20cd5507f3d7208731026f324b6fd
tree83866a595a270d46481df222fa27c772b9d34793
parent005865c45b766530b1dabbccff646a6eb674cb7b
neorados: specify alignments for aligned_storage

the default alignment of `Alignment = std::bit_ceil(S)` was a very
conservative estimate. reduce that to `alignof(std::max_align_t)` to
match the old behavior, then assert on construction that the given
alignment is large enough for the implementation's type

Fixes: https://tracker.ceph.com/issues/73750
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/include/neorados/RADOS.hpp
src/neorados/RADOS.cc