]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/services/svc_sync_modules.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rgw / services / svc_sync_modules.h
CommitLineData
9f95a23c
TL
1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2// vim: ts=8 sw=2 smarttab ft=cpp
11fdf7f2 3
9f95a23c 4#pragma once
11fdf7f2 5
1e59de90
TL
6#include "rgw_service.h"
7#include "rgw_sync_module.h"
11fdf7f2 8
9f95a23c 9class RGWSI_Zone;
11fdf7f2
TL
10
11class RGWSyncModulesManager;
12
13class RGWSI_SyncModules : public RGWServiceInstance
14{
15 RGWSyncModulesManager *sync_modules_manager{nullptr};
9f95a23c
TL
16 RGWSyncModuleInstanceRef sync_module;
17
18 struct Svc {
19 RGWSI_Zone *zone{nullptr};
20 } svc;
11fdf7f2
TL
21
22public:
23 RGWSI_SyncModules(CephContext *cct): RGWServiceInstance(cct) {}
24 ~RGWSI_SyncModules();
25
26 RGWSyncModulesManager *get_manager() {
27 return sync_modules_manager;
28 }
29
9f95a23c 30 void init(RGWSI_Zone *zone_svc);
b3b6e05e 31 int do_start(optional_yield, const DoutPrefixProvider *dpp) override;
11fdf7f2 32
9f95a23c
TL
33 RGWSyncModuleInstanceRef& get_sync_module() { return sync_module; }
34};