MySQL 9.0.0
Source Code Documentation
PFS_system_variable_info_cache Class Reference

System variable info cache. More...

#include <pfs_variable.h>

Inheritance diagram for PFS_system_variable_info_cache:
[legend]

Public Member Functions

 PFS_system_variable_info_cache (bool external_init)
 
 ~PFS_system_variable_info_cache () override=default
 
- Public Member Functions inherited from PFS_system_variable_cache
 PFS_system_variable_cache (bool external_init)
 
bool match_scope (int scope)
 Match system variable scope to desired scope. More...
 
ulonglong get_sysvar_hash_version ()
 
 ~PFS_system_variable_cache () override
 
- Public Member Functions inherited from PFS_variable_cache< System_variable >
 PFS_variable_cache (bool external_init)
 
virtual ~PFS_variable_cache ()=0
 Destructor. More...
 
bool initialize_session ()
 Build array of SHOW_VARs from the external variable source. More...
 
bool initialize_client_session ()
 Build array of SHOW_VARs suitable for aggregation by user, host or account. More...
 
int materialize_global ()
 Build cache of GLOBAL system or status variables. More...
 
int materialize_all (THD *thd)
 Build cache of GLOBAL and SESSION variables for a non-instrumented thread. More...
 
int materialize_session (THD *thd)
 Build cache of SESSION variables for a non-instrumented thread. More...
 
int materialize_session (PFS_thread *pfs_thread, bool use_mem_root=false)
 Build cache of SESSION variables for an instrumented thread. More...
 
int materialize_session (PFS_thread *pfs_thread, uint index)
 Cache a single SESSION variable for an instrumented thread. More...
 
int materialize_user (PFS_user *pfs_user)
 Build cache of SESSION status variables for a user. More...
 
int materialize_host (PFS_host *pfs_host)
 Build cache of SESSION status variables for a host. More...
 
int materialize_account (PFS_account *pfs_account)
 Build cache of SESSION status variables for an account. More...
 
bool is_materialized ()
 True if variables have been materialized. More...
 
bool is_materialized (THD *unsafe_thd)
 True if variables have been materialized for given THD. More...
 
bool is_materialized (PFS_thread *pfs_thread)
 True if variables have been materialized for given PFS_thread. More...
 
bool is_materialized (PFS_user *pfs_user)
 True if variables have been materialized for given PFS_user. More...
 
bool is_materialized (PFS_host *pfs_host)
 True if variables have been materialized for given PFS_host. More...
 
bool is_materialized (PFS_account *pfs_account)
 True if variables have been materialized for given PFS_account. More...
 
bool is_materialized (PFS_client *pfs_client)
 True if variables have been materialized for given PFS_user/host/account. More...
 
THD_ptr get_THD (THD *thd)
 Get a validated THD from the thread manager. More...
 
THD_ptr get_THD (PFS_thread *pfs_thread)
 
const System_variableget (uint index=0) const
 Get a single variable from the cache. More...
 
uint size ()
 Number of elements in the cache. More...
 

Private Member Functions

int do_materialize_all (THD *thd) override
 CLASS PFS_system_variable_info_cache. More...
 

Additional Inherited Members

- Public Types inherited from PFS_variable_cache< System_variable >
typedef Prealloced_array< System_variable, SYSTEM_VARIABLE_PREALLOCVariable_array
 
- Protected Member Functions inherited from PFS_system_variable_cache
bool init_show_var_array (enum_var_type scope, bool strict)
 Build a sorted list of all system variables from the system variable hash. More...
 
- Protected Attributes inherited from PFS_variable_cache< System_variable >
THDm_safe_thd
 
THDm_unsafe_thd
 
THDm_current_thd
 
PFS_threadm_pfs_thread
 
PFS_clientm_pfs_client
 
Find_THD_variable m_thd_finder
 
Variable_array m_cache
 
bool m_initialized
 
bool m_external_init
 
bool m_materialized
 
Show_var_array m_show_var_array
 
System_variable_tracker::Array m_sys_var_tracker_array
 
ulonglong m_version
 
enum_var_type m_query_scope
 
bool m_use_mem_root
 
bool m_aggregate
 

Detailed Description

System variable info cache.

Constructor & Destructor Documentation

◆ PFS_system_variable_info_cache()

PFS_system_variable_info_cache::PFS_system_variable_info_cache ( bool  external_init)
inlineexplicit

◆ ~PFS_system_variable_info_cache()

PFS_system_variable_info_cache::~PFS_system_variable_info_cache ( )
overridedefault

Member Function Documentation

◆ do_materialize_all()

int PFS_system_variable_info_cache::do_materialize_all ( THD unsafe_thd)
overrideprivatevirtual

CLASS PFS_system_variable_info_cache.

Build GLOBAL and SESSION system variable cache.

Reimplemented from PFS_system_variable_cache.


The documentation for this class was generated from the following files: