diff options
author | Casey Bodley <cbodley@redhat.com> | 2023-02-10 16:36:22 +0100 |
---|---|---|
committer | Adam Emerson <aemerson@redhat.com> | 2023-12-06 21:39:35 +0100 |
commit | 521211fe2fd53061e41eadc17561f9fb183e6f78 (patch) | |
tree | c22011fd01dfe02091043e275d6d93e7ca92fb66 /src/neorados | |
parent | common/async: SharedMutex uses free function post (diff) | |
download | ceph-521211fe2fd53061e41eadc17561f9fb183e6f78.tar.xz ceph-521211fe2fd53061e41eadc17561f9fb183e6f78.zip |
neorados: use strand template and make_strand()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/neorados')
-rw-r--r-- | src/neorados/RADOS.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/neorados/RADOS.cc b/src/neorados/RADOS.cc index 15b74f8e78d..fabf2d5b357 100644 --- a/src/neorados/RADOS.cc +++ b/src/neorados/RADOS.cc @@ -1127,7 +1127,7 @@ void RADOS::flush_watch(std::unique_ptr<VoidOpComp> c) struct NotifyHandler : std::enable_shared_from_this<NotifyHandler> { boost::asio::io_context& ioc; - boost::asio::io_context::strand strand; + boost::asio::strand<boost::asio::io_context::executor_type> strand; Objecter* objecter; Objecter::LingerOp* op; std::unique_ptr<RADOS::NotifyComp> c; @@ -1141,7 +1141,8 @@ struct NotifyHandler : std::enable_shared_from_this<NotifyHandler> { Objecter* objecter, Objecter::LingerOp* op, std::unique_ptr<RADOS::NotifyComp> 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, |