From c048715a5899ee188e41550390462044a83c7b84 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 10 Feb 2023 10:36:22 -0500 Subject: [PATCH] neorados: use strand template and make_strand() Signed-off-by: Casey Bodley --- src/neorados/RADOS.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/neorados/RADOS.cc b/src/neorados/RADOS.cc index 7ad60bb767fc2..d156a49e8a501 100644 --- a/src/neorados/RADOS.cc +++ b/src/neorados/RADOS.cc @@ -1168,7 +1168,7 @@ void RADOS::flush_watch(std::unique_ptr c) struct NotifyHandler : std::enable_shared_from_this { boost::asio::io_context& ioc; - boost::asio::io_context::strand strand; + boost::asio::strand strand; Objecter* objecter; Objecter::LingerOp* op; std::unique_ptr c; @@ -1182,7 +1182,8 @@ struct NotifyHandler : std::enable_shared_from_this { Objecter* objecter, Objecter::LingerOp* op, std::unique_ptr c) - : ioc(ioc), strand(ioc), objecter(objecter), op(op), c(std::move(c)) {} + : ioc(ioc), strand(boost::asio::make_strand(ioc)), + objecter(objecter), op(op), c(std::move(c)) {} // Use bind or a lambda to pass this in. void handle_ack(bs::error_code ec, -- 2.39.5