From: Bingyin Zhang Date: Wed, 13 Dec 2017 08:30:23 +0000 (+0800) Subject: rgw: remove redundant S3AnonymousEngine X-Git-Tag: v13.0.2~738^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=428f21c13af120a03f593be2fece433e92b56715;p=ceph.git rgw: remove redundant S3AnonymousEngine * 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 --- diff --git a/src/rgw/rgw_auth_registry.h b/src/rgw/rgw_auth_registry.h index 08a93c73dac2f..80a6ed6f05f80 100644 --- a/src/rgw/rgw_auth_registry.h +++ b/src/rgw/rgw_auth_registry.h @@ -30,7 +30,7 @@ class StrategyRegistry { using s3_main_strategy_plain_t = \ s3_strategy_t; using s3_main_strategy_boto2_t = \ - s3_strategy_t; + s3_strategy_t; s3_main_strategy_plain_t s3_main_strategy_plain; s3_main_strategy_boto2_t s3_main_strategy_boto2;