@@ -22,10 +22,10 @@ int RGWPeriod::init(const DoutPrefixProvider *dpp,
2222 return 0 ;
2323
2424 if (id.empty ()) {
25- RGWRealm realm (realm_id, realm_name );
25+ RGWRealm realm (realm_id);
2626 int ret = realm.init (dpp, cct, sysobj_svc, y);
2727 if (ret < 0 ) {
28- ldpp_dout (dpp, 4 ) << " RGWPeriod::init failed to init realm " << realm_name << " id " << realm_id << " : " <<
28+ ldpp_dout (dpp, 4 ) << " RGWPeriod::init failed to init realm id " << realm_id << " : " <<
2929 cpp_strerror (-ret) << dendl;
3030 return ret;
3131 }
@@ -36,7 +36,7 @@ int RGWPeriod::init(const DoutPrefixProvider *dpp,
3636 if (!epoch) {
3737 int ret = use_latest_epoch (dpp, y);
3838 if (ret < 0 ) {
39- ldpp_dout (dpp, 0 ) << " failed to use_latest_epoch period id " << id << " realm " << realm_name << " id " << realm_id
39+ ldpp_dout (dpp, 0 ) << " failed to use_latest_epoch period id " << id << " realm id " << realm_id
4040 << " : " << cpp_strerror (-ret) << dendl;
4141 return ret;
4242 }
@@ -46,14 +46,12 @@ int RGWPeriod::init(const DoutPrefixProvider *dpp,
4646}
4747
4848int RGWPeriod::init (const DoutPrefixProvider *dpp, CephContext *_cct, RGWSI_SysObj *_sysobj_svc,
49- const string& period_realm_id, optional_yield y,
50- const string& period_realm_name, bool setup_obj)
49+ const string& period_realm_id, optional_yield y, bool setup_obj)
5150{
5251 cct = _cct;
5352 sysobj_svc = _sysobj_svc;
5453
5554 realm_id = period_realm_id;
56- realm_name = period_realm_name;
5755
5856 if (!setup_obj)
5957 return 0 ;
@@ -244,7 +242,6 @@ void RGWPeriod::dump(Formatter *f) const
244242 encode_json (" master_zone" , master_zone, f);
245243 encode_json (" period_config" , period_config, f);
246244 encode_json (" realm_id" , realm_id, f);
247- encode_json (" realm_name" , realm_name, f);
248245 encode_json (" realm_epoch" , realm_epoch, f);
249246}
250247
@@ -259,7 +256,6 @@ void RGWPeriod::decode_json(JSONObj *obj)
259256 JSONDecoder::decode_json (" master_zone" , master_zone, obj);
260257 JSONDecoder::decode_json (" period_config" , period_config, obj);
261258 JSONDecoder::decode_json (" realm_id" , realm_id, obj);
262- JSONDecoder::decode_json (" realm_name" , realm_name, obj);
263259 JSONDecoder::decode_json (" realm_epoch" , realm_epoch, obj);
264260}
265261
0 commit comments