summaryrefslogtreecommitdiffstats
path: root/src/rgw/services/svc_sync_modules.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2018-10-04 02:18:57 +0200
committerYehuda Sadeh <yehuda@redhat.com>2018-11-08 18:19:29 +0100
commit4c0675bbc3f554acd052c11329287efc16b02357 (patch)
tree3daef11357a27d8e641e1bd1c2d38ad64d922c0e /src/rgw/services/svc_sync_modules.h
parentrgw: api fixes following rebase (diff)
downloadceph-4c0675bbc3f554acd052c11329287efc16b02357.tar.xz
ceph-4c0675bbc3f554acd052c11329287efc16b02357.zip
rgw: svc: due to popular demand, get rid of service registry
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/services/svc_sync_modules.h')
-rw-r--r--src/rgw/services/svc_sync_modules.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/rgw/services/svc_sync_modules.h b/src/rgw/services/svc_sync_modules.h
index 6e578c8d7cf..19c4ec57f7a 100644
--- a/src/rgw/services/svc_sync_modules.h
+++ b/src/rgw/services/svc_sync_modules.h
@@ -7,29 +7,19 @@
class RGWSyncModulesManager;
-class RGWS_SyncModules : public RGWService
-{
-public:
- RGWS_SyncModules(CephContext *cct) : RGWService(cct, "sync_modules") {}
-
- int create_instance(const std::string& conf, RGWServiceInstanceRef *instance) override;
-};
-
class RGWSI_SyncModules : public RGWServiceInstance
{
- RGWSyncModulesManager *sync_modules_manager;
-
- std::map<std::string, RGWServiceInstance::dependency> get_deps() override;
- int load(const std::string& conf, std::map<std::string, RGWServiceInstanceRef>& dep_refs) override;
- int init() override;
+ RGWSyncModulesManager *sync_modules_manager{nullptr};
public:
- RGWSI_SyncModules(RGWService *svc, CephContext *cct): RGWServiceInstance(svc, cct) {}
+ RGWSI_SyncModules(CephContext *cct): RGWServiceInstance(cct) {}
~RGWSI_SyncModules();
RGWSyncModulesManager *get_manager() {
return sync_modules_manager;
}
+
+ void init();
};
#endif