]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
neorados: specify alignments for aligned_storage 67512/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 24 Nov 2025 21:35:07 +0000 (16:35 -0500)
committerNitzanMordhai <nmordech@ibm.com>
Wed, 25 Feb 2026 08:59:44 +0000 (08:59 +0000)
commit40a4bc5b7149cedb3739dc4df2d0e910788dc789
tree6e9092c4ebefa6aa68d0aa16e2fd0d5c47c9e1b1
parentc824a7fa29b067db9ce5a381f59b175918299919
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>
(cherry picked from commit 7f388199b5a20cd5507f3d7208731026f324b6fd)

Conflicts:
  - src/include/neorados/RADOS.hpp
    struct alignas was missing in tentacle and been used, adding it
src/include/neorados/RADOS.hpp
src/neorados/RADOS.cc