From: Casey Bodley Date: Tue, 20 Jul 2021 16:50:25 +0000 (-0400) Subject: test/rgw: use spawn library for test_rgw_dmclock_scheduler X-Git-Tag: v15.2.16~77^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3e4a3eea8e9fc995044f78ad05297b3780744a9;p=ceph.git test/rgw: use spawn library for test_rgw_dmclock_scheduler Signed-off-by: Casey Bodley (cherry picked from commit a8e3589a2c875b6fadc853c75f20cb9256f294ca) Conflicts: src/test/rgw/CMakeLists.txt src/test/rgw/test_rgw_dmclock_scheduler.cc: trivial resolution --- diff --git a/src/test/rgw/CMakeLists.txt b/src/test/rgw/CMakeLists.txt index c57e56f242a..37f43756940 100644 --- a/src/test/rgw/CMakeLists.txt +++ b/src/test/rgw/CMakeLists.txt @@ -157,10 +157,6 @@ add_executable(unittest_rgw_dmclock_scheduler test_rgw_dmclock_scheduler.cc $ -#ifdef HAVE_BOOST_CONTEXT -#include -#endif +#include #include #include "acconfig.h" #include "global/global_context.h" @@ -403,7 +401,7 @@ TEST(Queue, SpawnAsyncRequest) { boost::asio::io_context context; - boost::asio::spawn(context, [&] (boost::asio::yield_context yield) { + spawn::spawn(context, [&] (spawn::yield_context yield) { ClientCounters counters(g_ceph_context); AsyncScheduler queue(g_ceph_context, context, std::ref(counters), nullptr, [] (client_id client) -> ClientInfo* {