Signed-off-by: Casey Bodley <cbodley@redhat.com>
if (ret < 0) {
return ret;
}
+ // read period_config into current_period
+ auto& period_config = current_period.get_config();
+ ret = period_config.read(this, zonegroup.realm_id);
+ if (ret < 0 && ret != -ENOENT) {
+ ldout(cct, 0) << "ERROR: failed to read period config: "
+ << cpp_strerror(ret) << dendl;
+ return ret;
+ }
}
ldout(cct, 10) << "Cannot find current period zone using local zone" << dendl;
const string& get_master_zonegroup() const { return master_zonegroup; }
const string& get_realm() const { return realm_id; }
const RGWPeriodMap& get_map() const { return period_map; }
+ RGWPeriodConfig& get_config() { return period_config; }
const RGWPeriodConfig& get_config() const { return period_config; }
const std::vector<std::string>& get_sync_status() const { return sync_status; }
rgw_pool get_pool(CephContext *cct);