orphaned role - must initialize role cache for e.g clickhouse-local

This commit is contained in:
Ilya Golshtein 2023-03-09 11:20:56 +01:00
parent c3ce0aa3ba
commit 3f51101ad4

View File

@ -247,6 +247,7 @@ private:
AccessControl::AccessControl()
: MultipleAccessStorage("user directories"),
context_access_cache(std::make_unique<ContextAccessCache>(*this)),
role_cache(std::make_unique<RoleCache>(*this, 600)),
row_policy_cache(std::make_unique<RowPolicyCache>(*this)),
quota_cache(std::make_unique<QuotaCache>(*this)),
settings_profiles_cache(std::make_unique<SettingsProfilesCache>(*this)),