summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/rgw_service.h
diff options
context:
space:
mode:
authorAdam C. Emerson <aemerson@redhat.com>2022-12-02 07:55:47 +0100
committerCasey Bodley <cbodley@redhat.com>2023-11-29 19:15:27 +0100
commita493b0710a50786ef0374df52831774fe6ca8d51 (patch)
treeb6978426f4e9deeb04b78c81ae3bd1004c73ec81 /src/rgw/driver/rados/rgw_service.h
parentrgw: Remove `RGWSI_RADOS` from `RGWSI_ConfigKey_RADOS` (diff)
downloadceph-a493b0710a50786ef0374df52831774fe6ca8d51.tar.xz
ceph-a493b0710a50786ef0374df52831774fe6ca8d51.zip
rgw: Remove `RGWSI_RADOS` from `RGWSI_MDLog`
Simply use the RADOS handle and `rgw_rados_ref` directly. Also move `async_processor` out from `RGWSI_RADOS` and into `RGWServices_Def`. This is as good a place as it for any, for now, as it's reachable by everyone who needs it and exists through the lifetime of the process. Eventually it's going to go away due to coroutinization, anyway. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_service.h')
-rw-r--r--src/rgw/driver/rados/rgw_service.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rgw/driver/rados/rgw_service.h b/src/rgw/driver/rados/rgw_service.h
index 46ee16417fe..ad80a6c8826 100644
--- a/src/rgw/driver/rados/rgw_service.h
+++ b/src/rgw/driver/rados/rgw_service.h
@@ -74,6 +74,7 @@ class RGWSI_User;
class RGWSI_User_RADOS;
class RGWDataChangesLog;
class RGWSI_Role_RADOS;
+class RGWAsyncRadosProcessor;
struct RGWServices_Def
{
@@ -104,6 +105,7 @@ struct RGWServices_Def
std::unique_ptr<RGWSI_User_RADOS> user_rados;
std::unique_ptr<RGWDataChangesLog> datalog_rados;
std::unique_ptr<RGWSI_Role_RADOS> role_rados;
+ std::unique_ptr<RGWAsyncRadosProcessor> async_processor;
RGWServices_Def();
~RGWServices_Def();
@@ -149,6 +151,7 @@ struct RGWServices
RGWSI_SysObj_Core *core{nullptr};
RGWSI_User *user{nullptr};
RGWSI_Role_RADOS *role{nullptr};
+ RGWAsyncRadosProcessor* async_processor;
int do_init(CephContext *cct, bool have_cache, bool raw_storage,
bool run_sync, librados::Rados* radoshandle, optional_yield y,