From: Radoslaw Zarzynski Date: Mon, 21 Nov 2016 14:24:46 +0000 (+0100) Subject: Revert "rgw: temporarily use std::vector in place of static_vector of Boost." X-Git-Tag: v11.1.0~222^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb782e1855f319aa0809176931abd16aae6f87e5;p=ceph.git Revert "rgw: temporarily use std::vector in place of static_vector of Boost." This reverts commit bc23e0f7fa8491c44fa938eeb954197f6aad2367. We're doing that because the reverted commit was a makeshift solution to not fail Ceph compilation on platforms lacking Boost modern enough to ship the container/static_vector.hpp. As we got the in-tree Boost the commit isn't necessary anymore. Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_swift_auth.cc b/src/rgw/rgw_swift_auth.cc index e78b3ea34048..80c2f483f773 100644 --- a/src/rgw/rgw_swift_auth.cc +++ b/src/rgw/rgw_swift_auth.cc @@ -4,13 +4,7 @@ #include #include -/* TODO(rzarzynski): we want to use static_vector when it will be available - * also on RHEL/Centos 7. At the moment std::vetor is being used instead. */ -#if 0 -# include -#else -# include -#endif +#include #include "rgw_swift_auth.h" #include "rgw_rest.h" @@ -229,12 +223,7 @@ RGWAuthApplier::aplptr_t RGWTempURLAuthEngine::authenticate() const }; /* Account owner calculates the signature also against a HTTP method. */ - /* TODO(rzarzynski): switch to static_vector when possible. */ -#if 0 boost::container::static_vector allowed_methods; -#else - std::vector allowed_methods; -#endif if (strcmp("HEAD", s->info.method) == 0) { /* HEAD requests are specially handled. */ /* TODO: after getting a newer boost (with static_vector supporting