![]() |
MySQL 8.0.43
Source Code Documentation
|
#include "sql/conn_handler/connection_handler_manager.h"#include <assert.h>#include <ctime>#include <new>#include "my_macros.h"#include "my_psi_config.h"#include "my_sys.h"#include "mysql/components/services/bits/mysql_cond_bits.h"#include "mysql/components/services/bits/mysql_mutex_bits.h"#include "mysql/components/services/bits/psi_bits.h"#include "mysql/components/services/bits/psi_cond_bits.h"#include "mysql/components/services/bits/psi_mutex_bits.h"#include "mysql/components/services/log_builtins.h"#include "mysql/service_thd_wait.h"#include "mysqld_error.h"#include "sql/conn_handler/channel_info.h"#include "sql/conn_handler/connection_handler_impl.h"#include "sql/conn_handler/plugin_connection_handler.h"#include "sql/current_thd.h"#include "sql/mysqld.h"#include "sql/sql_callback.h"#include "thr_lock.h"#include "thr_mutex.h"Functions | |
| static void | scheduler_wait_lock_begin () |
| Helper functions to allow mysys to call the thread scheduler when waiting for locks. More... | |
| static void | scheduler_wait_lock_end () |
| static void | scheduler_wait_sync_begin () |
| static void | scheduler_wait_sync_end () |
| THD * | create_thd (Channel_info *channel_info) |
| void | destroy_channel_info (Channel_info *channel_info) |
| void | dec_connection_count () |
| void | increment_aborted_connects () |
| int | my_connection_handler_set (Connection_handler_functions *chf, THD_event_functions *tef) |
| Instantiates Plugin_connection_handler based on the supplied Conection_handler_functions and sets it as the current connection handler. More... | |
| int | my_connection_handler_reset () |
| Destroys the current connection handler and restores the previous. More... | |
Variables | |
| static PSI_mutex_key | key_LOCK_connection_count |
| static PSI_mutex_info | all_conn_manager_mutexes [] |
| static PSI_cond_key | key_COND_connection_count |
| static PSI_cond_info | all_conn_manager_conds [] |
| THD * create_thd | ( | Channel_info * | channel_info | ) |
| void dec_connection_count | ( | ) |
| void destroy_channel_info | ( | Channel_info * | channel_info | ) |
| void increment_aborted_connects | ( | ) |
| int my_connection_handler_reset | ( | ) |
Destroys the current connection handler and restores the previous.
Should only be called after calling my_connection_handler_set().
| 1 | failure |
| 0 | success |
| int my_connection_handler_set | ( | struct Connection_handler_functions * | chf, |
| struct THD_event_functions * | tef | ||
| ) |
Instantiates Plugin_connection_handler based on the supplied Conection_handler_functions and sets it as the current connection handler.
Also sets the THD_event_functions functions which will be called by the server when e.g. beginning a wait.
Remembers the existing connection handler so that it can be restored later.
| chf | struct with functions to be called when e.g. handling new clients. |
| tef | struct with functions to be called when events (e.g. lock wait) happens. |
| 1 | failure |
| 0 | success |
|
static |
Helper functions to allow mysys to call the thread scheduler when waiting for locks.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |