From: Ali Masarwa Date: Sun, 6 Apr 2025 12:11:13 +0000 (+0300) Subject: RGW/standalone: fix issue emerged when vstart-ing cluster X-Git-Tag: v21.0.0~256^2~760^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2bdd9a0b48c0e0daff0ec2d9c54faa879440c4d;p=ceph.git RGW/standalone: fix issue emerged when vstart-ing cluster Signed-off-by: Ali Masarwa --- diff --git a/src/rgw/driver/rados/rgw_service.cc b/src/rgw/driver/rados/rgw_service.cc index da38c2b4c562..bc3e92c7e6bc 100644 --- a/src/rgw/driver/rados/rgw_service.cc +++ b/src/rgw/driver/rados/rgw_service.cc @@ -64,9 +64,9 @@ int RGWServices_Def::init(CephContext *cct, cls = std::make_unique(cct); config_key_rados = std::make_unique(cct); datalog_rados = std::make_unique(cct); - mdlog = std::make_unique(cct, run_sync); + mdlog = std::make_unique(cct, run_sync, cfgstore); notify = std::make_unique(cct); - zone = std::make_unique(cct); + zone = std::make_unique(cct, cfgstore); zone_utils = std::make_unique(cct); quota = std::make_unique(cct); sync_modules = std::make_unique(cct); diff --git a/src/rgw/services/svc_mdlog.cc b/src/rgw/services/svc_mdlog.cc index 885ea349e74c..b8f86c61a01e 100644 --- a/src/rgw/services/svc_mdlog.cc +++ b/src/rgw/services/svc_mdlog.cc @@ -25,7 +25,8 @@ using namespace std; using Svc = RGWSI_MDLog::Svc; using Cursor = RGWPeriodHistory::Cursor; -RGWSI_MDLog::RGWSI_MDLog(CephContext *cct, bool _run_sync) : RGWServiceInstance(cct), run_sync(_run_sync) { +RGWSI_MDLog::RGWSI_MDLog(CephContext *cct, bool _run_sync, rgw::sal::ConfigStore* _cfgstore) : RGWServiceInstance(cct), + run_sync(_run_sync), cfgstore(_cfgstore) { } RGWSI_MDLog::~RGWSI_MDLog() { diff --git a/src/rgw/services/svc_mdlog.h b/src/rgw/services/svc_mdlog.h index a466abd47d7d..a3f833a55dbf 100644 --- a/src/rgw/services/svc_mdlog.h +++ b/src/rgw/services/svc_mdlog.h @@ -53,7 +53,7 @@ class RGWSI_MDLog : public RGWServiceInstance rgw::sal::ConfigStore* cfgstore{nullptr}; public: - RGWSI_MDLog(CephContext *cct, bool run_sync); + RGWSI_MDLog(CephContext *cct, bool run_sync, rgw::sal::ConfigStore* _cfgstore); virtual ~RGWSI_MDLog(); librados::Rados* rados{nullptr}; diff --git a/src/rgw/services/svc_zone.cc b/src/rgw/services/svc_zone.cc index 099a127acae5..3303a38aef30 100644 --- a/src/rgw/services/svc_zone.cc +++ b/src/rgw/services/svc_zone.cc @@ -20,7 +20,7 @@ using namespace std; using namespace rgw_zone_defaults; -RGWSI_Zone::RGWSI_Zone(CephContext *cct) : RGWServiceInstance(cct) +RGWSI_Zone::RGWSI_Zone(CephContext *cct, rgw::sal::ConfigStore* _cfgstore) : RGWServiceInstance(cct), cfgstore(_cfgstore) { } diff --git a/src/rgw/services/svc_zone.h b/src/rgw/services/svc_zone.h index 18edde37138c..20e357919c49 100644 --- a/src/rgw/services/svc_zone.h +++ b/src/rgw/services/svc_zone.h @@ -79,7 +79,7 @@ class RGWSI_Zone : public RGWServiceInstance rgw::sal::ConfigStore* cfgstore, optional_yield y); public: - RGWSI_Zone(CephContext *cct); + RGWSI_Zone(CephContext *cct, rgw::sal::ConfigStore* cfgstore); ~RGWSI_Zone(); const RGWZoneParams& get_zone_params() const;