From a6034436e3f2bcb19b242d699bb1e2638a1a9d0f Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 29 Mar 2017 11:17:49 -0400 Subject: [PATCH] rgw: remove unused RGWPeriod::update(RGWZoneGroupMap) Signed-off-by: Casey Bodley --- src/rgw/rgw_rados.cc | 14 -------------- src/rgw/rgw_rados.h | 1 - 2 files changed, 15 deletions(-) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 68bd7b09f9fb8..233b80fd83593 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1367,20 +1367,6 @@ void RGWPeriod::fork() realm_epoch++; } -void RGWPeriod::update(const RGWZoneGroupMap& map) -{ - ldout(cct, 20) << __func__ << " realm " << realm_id << " period " << id << dendl; - for (std::map::const_iterator iter = map.zonegroups.begin(); - iter != map.zonegroups.end(); ++iter) { - period_map.zonegroups_by_api[iter->second.api_name] = iter->second; - period_map.zonegroups[iter->second.get_name()] = iter->second; - } - - period_config.bucket_quota = map.bucket_quota; - period_config.user_quota = map.user_quota; - period_map.master_zonegroup = map.master_zonegroup; -} - int RGWPeriod::update_sync_status() { // must be new period's master zone to write sync status diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index ad6c09e139119..d99e24d38378d 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1818,7 +1818,6 @@ public: realm_id = _realm_id; } - void update(const RGWZoneGroupMap& map); int reflect(); int get_zonegroup(RGWZoneGroup& zonegroup, -- 2.39.5