From: Loic Dachary Date: Tue, 9 May 2017 19:59:23 +0000 (+0200) Subject: crush,osd: s/chooseargs/choose_args/ X-Git-Tag: v12.1.0~10^2~94^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3099684cf6ebea6c1e3fdad3988c90c8f37341db;p=ceph.git crush,osd: s/chooseargs/choose_args/ Signed-off-by: Loic Dachary --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index ee6db9bc629a..04246a842256 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -105,12 +105,12 @@ bool CrushWrapper::is_v5_rule(unsigned ruleid) const return false; } -bool CrushWrapper::has_chooseargs() const +bool CrushWrapper::has_choose_args() const { return !choose_args.empty(); } -bool CrushWrapper::has_incompat_chooseargs() const +bool CrushWrapper::has_incompat_choose_args() const { // FIXME: if the chooseargs all have 1 position *and* do not remap IDs then // we can fabricate a compatible crush map for legacy clients by swapping the diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index c47a5badc412..03cbc4ec7c9a 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -316,8 +316,8 @@ public: bool has_v3_rules() const; bool has_v4_buckets() const; bool has_v5_rules() const; - bool has_chooseargs() const; // any chooseargs - bool has_incompat_chooseargs() const; // chooseargs that can't be made compat + bool has_choose_args() const; // any choose_args + bool has_incompat_choose_args() const; // choose_args that can't be made compat bool is_v2_rule(unsigned ruleid) const; bool is_v3_rule(unsigned ruleid) const; diff --git a/src/include/ceph_features.h b/src/include/ceph_features.h index 8b8933b7e018..9decdaff3e70 100755 --- a/src/include/ceph_features.h +++ b/src/include/ceph_features.h @@ -101,7 +101,7 @@ DEFINE_CEPH_FEATURE(21, 2, SERVER_LUMINOUS) DEFINE_CEPH_FEATURE(21, 2, RESEND_ON_SPLIT) // overlap DEFINE_CEPH_FEATURE(21, 2, RADOS_BACKOFF) // overlap DEFINE_CEPH_FEATURE(21, 2, OSDMAP_PG_UPMAP) // overlap -DEFINE_CEPH_FEATURE(21, 2, CRUSH_CHOOSEARGS) // overlap +DEFINE_CEPH_FEATURE(21, 2, CRUSH_CHOOSE_ARGS) // overlap DEFINE_CEPH_FEATURE_RETIRED(22, 1, BACKFILL_RESERVATION, JEWEL, LUMINOUS) DEFINE_CEPH_FEATURE(23, 1, MSG_AUTH) @@ -253,7 +253,7 @@ DEFINE_CEPH_FEATURE_DEPRECATED(63, 1, RESERVED_BROKEN, LUMINOUS) // client-facin CEPH_FEATURE_CRUSH_TUNABLES5 | \ CEPH_FEATURE_CRUSH_V2 | \ CEPH_FEATURE_CRUSH_V4 | \ - CEPH_FEATURE_CRUSH_CHOOSEARGS) + CEPH_FEATURE_CRUSH_CHOOSE_ARGS) /* * make sure we don't try to use the reserved features diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 446e2ca8c3f4..d7bbff6b7def 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -1167,8 +1167,8 @@ uint64_t OSDMap::get_features(int entity_type, uint64_t *pmask) const features |= CEPH_FEATURE_CRUSH_V4; if (crush->has_nondefault_tunables5()) features |= CEPH_FEATURE_CRUSH_TUNABLES5; - if (crush->has_incompat_chooseargs()) - features |= CEPH_FEATURE_CRUSH_CHOOSEARGS; + if (crush->has_incompat_choose_args()) + features |= CEPH_FEATURE_CRUSH_CHOOSE_ARGS; mask |= CEPH_FEATURES_CRUSH; if (!pg_upmap.empty() || !pg_upmap_items.empty()) @@ -1250,7 +1250,7 @@ pair OSDMap::get_min_compat_client() const uint64_t f = get_features(CEPH_ENTITY_TYPE_CLIENT, nullptr); if (HAVE_FEATURE(f, OSDMAP_PG_UPMAP) || // v12.0.0-1733-g27d6f43 - HAVE_FEATURE(f, CRUSH_CHOOSEARGS)) { // v12.0.1-2172-gef1ef28 + HAVE_FEATURE(f, CRUSH_CHOOSE_ARGS)) { // v12.0.1-2172-gef1ef28 return make_pair("luminous", "12.2.0"); } if (HAVE_FEATURE(f, CRUSH_TUNABLES5)) { // v10.0.0-612-g043a737