|
|
|
|
@ -504,6 +504,7 @@ static char * mysql_thread_variables_names[]= {
|
|
|
|
|
(char *)"handle_warnings",
|
|
|
|
|
(char *)"evaluate_replication_lag_on_servers_load",
|
|
|
|
|
(char *)"proxy_protocol_networks",
|
|
|
|
|
(char *)"compression_level",
|
|
|
|
|
NULL
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@ -1137,6 +1138,7 @@ MySQL_Threads_Handler::MySQL_Threads_Handler() {
|
|
|
|
|
variables.enable_load_data_local_infile=false;
|
|
|
|
|
variables.log_mysql_warnings_enabled=false;
|
|
|
|
|
variables.data_packets_history_size=0;
|
|
|
|
|
variables.compression_level=3;
|
|
|
|
|
// status variables
|
|
|
|
|
status_variables.mirror_sessions_current=0;
|
|
|
|
|
__global_MySQL_Thread_Variables_version=1;
|
|
|
|
|
@ -2264,6 +2266,7 @@ char ** MySQL_Threads_Handler::get_variables_list() {
|
|
|
|
|
VariablesPointers_int["client_host_error_counts"] = make_tuple(&variables.client_host_error_counts, 0, 1024*1024, false);
|
|
|
|
|
VariablesPointers_int["handle_warnings"] = make_tuple(&variables.handle_warnings, 0, 1, false);
|
|
|
|
|
VariablesPointers_int["evaluate_replication_lag_on_servers_load"] = make_tuple(&variables.evaluate_replication_lag_on_servers_load, 0, 1, false);
|
|
|
|
|
VariablesPointers_int["compression_level"] = make_tuple(&variables.compression_level, 0, 9, false);
|
|
|
|
|
|
|
|
|
|
// logs
|
|
|
|
|
VariablesPointers_int["auditlog_filesize"] = make_tuple(&variables.auditlog_filesize, 1024*1024, 1*1024*1024*1024, false);
|
|
|
|
|
@ -4180,6 +4183,7 @@ void MySQL_Thread::refresh_variables() {
|
|
|
|
|
REFRESH_VARIABLE_INT(poll_timeout);
|
|
|
|
|
REFRESH_VARIABLE_INT(poll_timeout_on_failure);
|
|
|
|
|
REFRESH_VARIABLE_BOOL(have_compress);
|
|
|
|
|
REFRESH_VARIABLE_INT(compression_level);
|
|
|
|
|
REFRESH_VARIABLE_BOOL(have_ssl);
|
|
|
|
|
REFRESH_VARIABLE_BOOL(multiplexing);
|
|
|
|
|
REFRESH_VARIABLE_BOOL(log_unhealthy_connections);
|
|
|
|
|
@ -4264,6 +4268,8 @@ MySQL_Thread::MySQL_Thread() {
|
|
|
|
|
mysql_thread___ssl_p2s_crl=NULL;
|
|
|
|
|
mysql_thread___ssl_p2s_crlpath=NULL;
|
|
|
|
|
|
|
|
|
|
mysql_thread___compression_level=3;
|
|
|
|
|
|
|
|
|
|
last_maintenance_time=0;
|
|
|
|
|
last_move_to_idle_thread_time=0;
|
|
|
|
|
maintenance_loop=true;
|
|
|
|
|
|