From: Adam C. Emerson Date: Fri, 1 May 2026 20:19:13 +0000 (-0400) Subject: rgw: Work around Boost.Containers bug in 1.91 X-Git-Tag: v21.0.1~242^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd434b7e425af2e9cbe3350ca31abc4d5a290807;p=ceph.git rgw: Work around Boost.Containers bug in 1.91 Since we're inserting from another `flat_set`, we can use `ordered_unique_range`and sidestep the issue entirely and it's more efficient. https://github.com/boostorg/container/issues/334 Signed-off-by: Adam C. Emerson --- diff --git a/src/rgw/rgw_zone.cc b/src/rgw/rgw_zone.cc index 77a88fd44c7..6cb559bab57 100644 --- a/src/rgw/rgw_zone.cc +++ b/src/rgw/rgw_zone.cc @@ -977,7 +977,9 @@ int add_zone_to_group(const DoutPrefixProvider* dpp, RGWZoneGroup& zonegroup, } // add/remove supported features - zone.supported_features.insert(enable_features.begin(), + zone.supported_features.insert(boost::container::ordered_unique_range, + enable_features.begin(), + enable_features.end()); for (const auto& feature : disable_features) {