* the dynamic reconfiguration. */
implicit_tenant_context.reset(new rgw::auth::ImplicitTenants{g_conf()});
g_conf().add_observer(implicit_tenant_context.get());
- auto auth_registry =
- rgw::auth::StrategyRegistry::create(dpp->get_cct(), *implicit_tenant_context, env.driver);
/* allocate a mime table (you'd never guess that from the name) */
rgw_tools_init(dpp, dpp->get_cct());
// initialize RGWProcessEnv
env.rest = &rest;
env.olog = olog;
- env.auth_registry = auth_registry;
+ env.auth_registry = rgw::auth::StrategyRegistry::create(
+ dpp->get_cct(), *implicit_tenant_context, env.driver);
env.ratelimiting = ratelimiter.get();
env.lua_background = lua_background.get();
return sts_strategy;
}
- static std::shared_ptr<StrategyRegistry>
+ static std::unique_ptr<StrategyRegistry>
create(CephContext* const cct,
const ImplicitTenants& implicit_tenant_context,
rgw::sal::Driver* driver) {
- return std::make_shared<StrategyRegistry>(cct, implicit_tenant_context, driver);
+ return std::make_unique<StrategyRegistry>(cct, implicit_tenant_context, driver);
}
};
} /* namespace rgw */
using rgw_auth_registry_t = rgw::auth::StrategyRegistry;
-using rgw_auth_registry_ptr_t = std::shared_ptr<rgw_auth_registry_t>;
+using rgw_auth_registry_ptr_t = std::unique_ptr<rgw_auth_registry_t>;
#endif /* CEPH_RGW_AUTH_REGISTRY_H */
rgw::sal::Driver* driver = nullptr;
RGWREST *rest = nullptr;
OpsLogSink *olog = nullptr;
- std::shared_ptr<rgw::auth::StrategyRegistry> auth_registry;
+ rgw_auth_registry_ptr_t auth_registry;
ActiveRateLimiter* ratelimiting = nullptr;
rgw::lua::Background* lua_background = nullptr;
};