From: Casey Bodley Date: Wed, 29 Mar 2017 15:17:49 +0000 (-0400) Subject: rgw: remove unused RGWPeriod::update(RGWZoneGroupMap) X-Git-Tag: v12.0.2~191^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6034436e3f2bcb19b242d699bb1e2638a1a9d0f;p=ceph.git rgw: remove unused RGWPeriod::update(RGWZoneGroupMap) Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 68bd7b09f9fb..233b80fd8359 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 ad6c09e13911..d99e24d38378 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,