]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW/standalone: fix issue emerged when vstart-ing cluster
authorAli Masarwa <amasarwa@redhat.com>
Sun, 6 Apr 2025 12:11:13 +0000 (15:11 +0300)
committerAli Masarwa <amasarwa@redhat.com>
Tue, 29 Apr 2025 12:31:09 +0000 (15:31 +0300)
Signed-off-by: Ali Masarwa <amasarwa@redhat.com>
src/rgw/driver/rados/rgw_service.cc
src/rgw/services/svc_mdlog.cc
src/rgw/services/svc_mdlog.h
src/rgw/services/svc_zone.cc
src/rgw/services/svc_zone.h

index da38c2b4c562bec74d8dbaa59a45480957a2ff46..bc3e92c7e6bc56e881f831e5f8eba6f8be5ced31 100644 (file)
@@ -64,9 +64,9 @@ int RGWServices_Def::init(CephContext *cct,
   cls = std::make_unique<RGWSI_Cls>(cct);
   config_key_rados = std::make_unique<RGWSI_ConfigKey_RADOS>(cct);
   datalog_rados = std::make_unique<RGWDataChangesLog>(cct);
-  mdlog = std::make_unique<RGWSI_MDLog>(cct, run_sync);
+  mdlog = std::make_unique<RGWSI_MDLog>(cct, run_sync, cfgstore);
   notify = std::make_unique<RGWSI_Notify>(cct);
-  zone = std::make_unique<RGWSI_Zone>(cct);
+  zone = std::make_unique<RGWSI_Zone>(cct, cfgstore);
   zone_utils = std::make_unique<RGWSI_ZoneUtils>(cct);
   quota = std::make_unique<RGWSI_Quota>(cct);
   sync_modules = std::make_unique<RGWSI_SyncModules>(cct);
index 885ea349e74c65988bd12ece46792036c9c2ff93..b8f86c61a01e4742fc3dc55e87df9094e820c5fe 100644 (file)
@@ -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() {
index a466abd47d7de059d77b1128fcceee3ef0fedc56..a3f833a55dbffeb74f58f65312a92574d0808fbe 100644 (file)
@@ -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};
index 099a127acae52239070cbf47cf9d5157390f8f9d..3303a38aef30eabd5921ead5138d6a5610193bf7 100644 (file)
@@ -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)
 {
 }
 
index 18edde37138c523e247ed08c7309b939ff84340b..20e357919c498e7af608c4a512417e4da09b5ae1 100644 (file)
@@ -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;