]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove redundant S3AnonymousEngine 19474/head
authorBingyin Zhang <zhangbingyin@cloudin.cn>
Wed, 13 Dec 2017 08:30:23 +0000 (16:30 +0800)
committerBingyin Zhang <zhangbingyin@cloudin.cn>
Wed, 13 Dec 2017 08:30:23 +0000 (16:30 +0800)
* When receives unauthorized requests, RGW(rados auth only) runs four
* engines as follows:
*     1. anonymous engine in s3_main_strategy_plain
*     2. local engine in s3_main_strategy_plain
*     3. anonymous engine in s3_main_strategy_boto2
*     4. local engine in s3_main_strategy_boto2
* The third engine which is exactly the same with the first one is
* redundant.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
src/rgw/rgw_auth_registry.h

index 08a93c73dac2f4c9bb52ad87a2b6135c209ab85d..80a6ed6f05f80cc914b56f2341fbb7716cc6bce0 100644 (file)
@@ -30,7 +30,7 @@ class StrategyRegistry {
     using s3_main_strategy_plain_t = \
       s3_strategy_t<rgw::auth::s3::AWSGeneralAbstractor, true>;
     using s3_main_strategy_boto2_t = \
-      s3_strategy_t<rgw::auth::s3::AWSGeneralBoto2Abstractor, true>;
+      s3_strategy_t<rgw::auth::s3::AWSGeneralBoto2Abstractor>;
 
     s3_main_strategy_plain_t s3_main_strategy_plain;
     s3_main_strategy_boto2_t s3_main_strategy_boto2;