From 428f21c13af120a03f593be2fece433e92b56715 Mon Sep 17 00:00:00 2001 From: Bingyin Zhang Date: Wed, 13 Dec 2017 16:30:23 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_auth_registry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_auth_registry.h b/src/rgw/rgw_auth_registry.h index 08a93c73dac2..80a6ed6f05f8 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; -- 2.47.3