diff options
author | Adam C. Emerson <aemerson@redhat.com> | 2023-04-14 20:59:19 +0200 |
---|---|---|
committer | Adam Emerson <aemerson@redhat.com> | 2024-01-24 21:51:46 +0100 |
commit | 7c4eee61c4ab6e54f9298053eaecde682b19cc2b (patch) | |
tree | a97dcdff66328c0c0535824bd11235cea5d680e3 /src/rgw/rgw_realm_reloader.h | |
parent | ceph/async: `io_context_pool` constructor/start takes init function (diff) | |
download | ceph-7c4eee61c4ab6e54f9298053eaecde682b19cc2b.tar.xz ceph-7c4eee61c4ab6e54f9298053eaecde682b19cc2b.zip |
rgw: SAL drivers take `boost::asio::io_context`
`RadosDriver` needs it, and since SAL generally uses `optional_yield`,
other stores are going to need it to implement that sensibly.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/rgw/rgw_realm_reloader.h')
-rw-r--r-- | src/rgw/rgw_realm_reloader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rgw/rgw_realm_reloader.h b/src/rgw/rgw_realm_reloader.h index 25082a2e490..6cf969da55a 100644 --- a/src/rgw/rgw_realm_reloader.h +++ b/src/rgw/rgw_realm_reloader.h @@ -3,6 +3,8 @@ #pragma once +#include <boost/asio/io_context.hpp> + #include "rgw_realm_watcher.h" #include "common/Cond.h" #include "rgw_sal_fwd.h" @@ -36,7 +38,7 @@ class RGWRealmReloader : public RGWRealmWatcher::Watcher { RGWRealmReloader(RGWProcessEnv& env, const rgw::auth::ImplicitTenants& implicit_tenants, std::map<std::string, std::string>& service_map_meta, - Pauser* frontends); + Pauser* frontends, boost::asio::io_context& io_context); ~RGWRealmReloader() override; /// respond to realm notifications by scheduling a reload() @@ -52,6 +54,7 @@ class RGWRealmReloader : public RGWRealmWatcher::Watcher { const rgw::auth::ImplicitTenants& implicit_tenants; std::map<std::string, std::string>& service_map_meta; Pauser *const frontends; + boost::asio::io_context& io_context; /// reload() takes a significant amount of time, so we don't want to run /// it in the handle_notify() thread. we choose a timer thread instead of a |