MySQL 9.1.0
Source Code Documentation
|
Performance schema host (implementation). More...
#include "storage/perfschema/pfs_host.h"
#include <assert.h>
#include "my_compiler.h"
#include "my_sys.h"
#include "sql/mysqld.h"
#include "storage/perfschema/pfs.h"
#include "storage/perfschema/pfs_buffer_container.h"
#include "storage/perfschema/pfs_global.h"
#include "storage/perfschema/pfs_instr.h"
#include "storage/perfschema/pfs_instr_class.h"
#include "storage/perfschema/pfs_setup_actor.h"
#include "storage/perfschema/pfs_stat.h"
Classes | |
class | Proc_purge_host |
Functions | |
int | init_host (const PFS_global_param *param) |
Initialize the host buffers. More... | |
void | cleanup_host () |
Cleanup all the host buffers. More... | |
static const uchar * | host_hash_get_key (const uchar *entry, size_t *length) |
static uint | host_hash_func (const LF_HASH *, const uchar *key, size_t key_len) |
static int | host_hash_cmp_func (const uchar *key1, size_t key_len1, const uchar *key2, size_t key_len2) |
int | init_host_hash (const PFS_global_param *param) |
Initialize the host hash. More... | |
void | cleanup_host_hash () |
Cleanup the host hash. More... | |
static LF_PINS * | get_host_hash_pins (PFS_thread *thread) |
static void | set_host_key (PFS_host_key *key, const PFS_host_name *host) |
PFS_host * | find_or_create_host (PFS_thread *thread, const PFS_host_name *host) |
PFS_host * | sanitize_host (PFS_host *unsafe) |
static void | purge_host (PFS_thread *thread, PFS_host *host) |
void | purge_all_host () |
Purge non connected hosts, reset stats of connected hosts. More... | |
Variables | |
LF_HASH | host_hash |
static bool | host_hash_inited = false |
Performance schema host (implementation).