Skip to content

Commit f2bdd9a

Browse files
committed
RGW/standalone: fix issue emerged when vstart-ing cluster
Signed-off-by: Ali Masarwa <[email protected]>
1 parent 9efbe5d commit f2bdd9a

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

src/rgw/driver/rados/rgw_service.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ int RGWServices_Def::init(CephContext *cct,
6464
cls = std::make_unique<RGWSI_Cls>(cct);
6565
config_key_rados = std::make_unique<RGWSI_ConfigKey_RADOS>(cct);
6666
datalog_rados = std::make_unique<RGWDataChangesLog>(cct);
67-
mdlog = std::make_unique<RGWSI_MDLog>(cct, run_sync);
67+
mdlog = std::make_unique<RGWSI_MDLog>(cct, run_sync, cfgstore);
6868
notify = std::make_unique<RGWSI_Notify>(cct);
69-
zone = std::make_unique<RGWSI_Zone>(cct);
69+
zone = std::make_unique<RGWSI_Zone>(cct, cfgstore);
7070
zone_utils = std::make_unique<RGWSI_ZoneUtils>(cct);
7171
quota = std::make_unique<RGWSI_Quota>(cct);
7272
sync_modules = std::make_unique<RGWSI_SyncModules>(cct);

src/rgw/services/svc_mdlog.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ using namespace std;
2525
using Svc = RGWSI_MDLog::Svc;
2626
using Cursor = RGWPeriodHistory::Cursor;
2727

28-
RGWSI_MDLog::RGWSI_MDLog(CephContext *cct, bool _run_sync) : RGWServiceInstance(cct), run_sync(_run_sync) {
28+
RGWSI_MDLog::RGWSI_MDLog(CephContext *cct, bool _run_sync, rgw::sal::ConfigStore* _cfgstore) : RGWServiceInstance(cct),
29+
run_sync(_run_sync), cfgstore(_cfgstore) {
2930
}
3031

3132
RGWSI_MDLog::~RGWSI_MDLog() {

src/rgw/services/svc_mdlog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class RGWSI_MDLog : public RGWServiceInstance
5353
rgw::sal::ConfigStore* cfgstore{nullptr};
5454

5555
public:
56-
RGWSI_MDLog(CephContext *cct, bool run_sync);
56+
RGWSI_MDLog(CephContext *cct, bool run_sync, rgw::sal::ConfigStore* _cfgstore);
5757
virtual ~RGWSI_MDLog();
5858

5959
librados::Rados* rados{nullptr};

src/rgw/services/svc_zone.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
using namespace std;
2121
using namespace rgw_zone_defaults;
2222

23-
RGWSI_Zone::RGWSI_Zone(CephContext *cct) : RGWServiceInstance(cct)
23+
RGWSI_Zone::RGWSI_Zone(CephContext *cct, rgw::sal::ConfigStore* _cfgstore) : RGWServiceInstance(cct), cfgstore(_cfgstore)
2424
{
2525
}
2626

src/rgw/services/svc_zone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class RGWSI_Zone : public RGWServiceInstance
7979
rgw::sal::ConfigStore* cfgstore,
8080
optional_yield y);
8181
public:
82-
RGWSI_Zone(CephContext *cct);
82+
RGWSI_Zone(CephContext *cct, rgw::sal::ConfigStore* cfgstore);
8383
~RGWSI_Zone();
8484

8585
const RGWZoneParams& get_zone_params() const;

0 commit comments

Comments
 (0)