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);
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() {
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};
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)
{
}
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;