_find_package(${ARGV})
endif()
endmacro ()
- set(Seastar_API_LEVEL "6" CACHE STRING "" FORCE)
+ set(Seastar_API_LEVEL "10" CACHE STRING "" FORCE)
set(Seastar_IO_URING ${HAVE_LIBURING} CACHE BOOL "" FORCE)
set(Seastar_DEPRECATED_OSTREAM_FORMATTERS OFF CACHE BOOL "" FORCE)
if(WITH_ASAN)
#include <seastar/core/sleep.hh>
#include <seastar/core/when_all.hh>
+#include <seastar/core/do_with.hh>
#include <seastar/net/packet.hh>
+#include <span>
+
#include "crimson/common/config_proxy.h" // for local_conf()
#include "crimson/common/log.h"
#include "include/random.h" // for ceph::util::generate_random_number()
return inject_delay(
).then([buf = std::move(buf), this]() mutable {
packet p(std::move(buf));
- return out.write(std::move(p));
+ return seastar::do_with(p.release(), [this](auto& frags) {
+ return out.write(std::span<seastar::temporary_buffer<char>>(frags));
+ });
});
#ifdef UNIT_TESTS_BUILT
}).then([this] {
return inject_delay(
).then([buf = std::move(buf), this]() mutable {
packet p(std::move(buf));
- return out.write(std::move(p)
- ).then([this] {
+ return seastar::do_with(p.release(), [this](auto& frags) {
+ return out.write(std::span<seastar::temporary_buffer<char>>(frags));
+ }).then([this] {
return out.flush();
});
});