]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: use the seastar span sink API and build at API level 10
authorKefu Chai <k.chai@proxmox.com>
Fri, 26 Jun 2026 07:56:35 +0000 (15:56 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 28 Jul 2026 08:05:39 +0000 (16:05 +0800)
commitdcbe48ff0bee47b9c06b506bc4be3e7ffdb6f683
tree13f9349a29c3cecacdc762e8b19e8562dc8d2b26
parentdf181842f19e0e8b0518f599ed7c43cda45be1ff
crimson: use the seastar span sink API and build at API level 10

At SEASTAR_API_LEVEL >= 9 seastar dropped output_stream::write(net::packet) in
favour of write(std::span<temporary_buffer<char>>). Convert Socket's writes to
the span form, writing the packet's released fragments and keeping them alive
across the write with do_with, then raise Seastar_API_LEVEL from 6 to 10 to
match the updated seastar. The span write overloads are unconditional, so the
Socket change is valid at every API level.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/CMakeLists.txt
src/crimson/net/Socket.cc