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: v10.2.10~24^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=63df57807486a3b2fd6c4ec154f2d70fa9e88948;p=ceph.git rgw: is_single_zonegroup doesn't use store or cct Signed-off-by: Orit Wasserman (cherry picked from commit 0b0090cee249c5380efa4bb416d724a7e2dbfc08) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index f66dc2312cd9e..b82bc2ee70819 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 @@ -915,11 +916,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()) { @@ -7389,7 +7385,7 @@ bool RGWRados::is_syncing_bucket_meta(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 80f11622ef63b..9c3de8fdb2338 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1496,7 +1496,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); + } /* returns true if there are several zone groups with a least one zone