From d7e9cd6c1054cea97aed9c5d47fcf3e8b79a10c9 Mon Sep 17 00:00:00 2001 From: Cylance <11178036+cylance@user.noreply.gitee.com> Date: Thu, 22 May 2025 09:59:40 +0800 Subject: [PATCH] modify shared_dictionary_cache.h --- sql/dd/impl/cache/shared_dictionary_cache.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/sql/dd/impl/cache/shared_dictionary_cache.h b/sql/dd/impl/cache/shared_dictionary_cache.h index 807afa148..53dd638df 100644 --- a/sql/dd/impl/cache/shared_dictionary_cache.h +++ b/sql/dd/impl/cache/shared_dictionary_cache.h @@ -36,6 +36,9 @@ #include "sql/dd/types/spatial_reference_system.h" // Spatial_reference_system #include "sql/dd/types/table.h" // IWYU pragma: keep #include "sql/dd/types/tablespace.h" // Tablespace +#ifdef HAVE_ZSQL_ORA_PROFILE +#include "sql/oracle_compatibility/ora_profile/ora_profile_info.h" // ora_profile_info +#endif //HAVE_ZSQL_ORA_PROFILE #include "sql/handler.h" // enum_tx_isolation class THD; @@ -76,6 +79,9 @@ class Shared_dictionary_cache { of resource group configurations that may be in use. */ static const size_t resource_group_capacity = 32; +#ifdef HAVE_ZSQL_ORA_PROFILE + static const size_t ora_profile_info_capacity = 32; +#endif //HAVE_ZSQL_ORA_PROFILE Shared_multi_map m_abstract_table_map; Shared_multi_map m_charset_map; @@ -83,6 +89,9 @@ class Shared_dictionary_cache { Shared_multi_map m_column_stat_map; Shared_multi_map m_event_map; Shared_multi_map m_resource_group_map; +#ifdef HAVE_ZSQL_ORA_PROFILE + Shared_multi_map m_ora_profile_info_map; +#endif //HAVE_ZSQL_ORA_PROFILE Shared_multi_map m_routine_map; Shared_multi_map m_schema_map; Shared_multi_map m_spatial_reference_system_map; @@ -113,6 +122,11 @@ class Shared_dictionary_cache { Shared_multi_map *m_map(Type_selector) { return &m_resource_group_map; } +#ifdef HAVE_ZSQL_ORA_PROFILE + Shared_multi_map *m_map(Type_selector) { + return &m_ora_profile_info_map; + } +#endif //HAVE_ZSQL_ORA_PROFILE Shared_multi_map *m_map(Type_selector) { return &m_routine_map; } @@ -155,7 +169,12 @@ class Shared_dictionary_cache { Type_selector) const { return &m_resource_group_map; } - +#ifdef HAVE_ZSQL_ORA_PROFILE + const Shared_multi_map *m_map( + Type_selector) const { + return &m_ora_profile_info_map; + } +#endif // HAVE_ZSQL_ORA_PROFILE /** Template function to get a map instance. -- Gitee