From: Orit Wasserman Date: Thu, 22 Jun 2017 07:17:37 +0000 (+0300) Subject: rgw: is_single_zonegroup doesn't use store or cct X-Git-Tag: v12.1.1~166^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b0090cee249c5380efa4bb416d724a7e2dbfc08;p=ceph.git rgw: is_single_zonegroup doesn't use store or cct Signed-off-by: Orit Wasserman --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 88b2710c6ef..916471d967a 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1,3 +1,4 @@ + // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab @@ -1088,11 +1089,6 @@ int RGWPeriod::get_zonegroup(RGWZoneGroup& zonegroup, const string& zonegroup_id return -ENOENT; } -bool RGWPeriod::is_single_zonegroup(CephContext *cct, RGWRados *store) -{ - return (period_map.zonegroups.size() == 1); -} - const string& RGWPeriod::get_latest_epoch_oid() { if (cct->_conf->rgw_period_latest_epoch_info_oid.empty()) { @@ -8202,7 +8198,7 @@ bool RGWRados::is_syncing_bucket_meta(const rgw_bucket& bucket) } /* single zonegroup and a single zone */ - if (current_period.is_single_zonegroup(cct, this) && get_zonegroup().zones.size() == 1) { + if (current_period.is_single_zonegroup() && get_zonegroup().zones.size() == 1) { return false; } diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 4e81cbe4fcf..9018cbbf392 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1869,7 +1869,10 @@ public: int get_zonegroup(RGWZoneGroup& zonegroup, const string& zonegroup_id); - bool is_single_zonegroup(CephContext *cct, RGWRados *store); + bool is_single_zonegroup() + { + return (period_map.zonegroups.size() == 1); + } int get_latest_epoch(epoch_t& epoch); int set_latest_epoch(epoch_t epoch, bool exclusive = false);