#include "mysql_priv.h"#include <mysql.h>#include "slave.h"#include <my_getopt.h>#include <thr_alarm.h>#include <myisam.h>#include <my_dir.h>#include "event_scheduler.h"Include dependency graph for set_var.cc:

Go to the source code of this file.
Classes | |
| struct | old_names_map_st |
Typedefs | |
| typedef old_names_map_st | my_old_conv |
Functions | |
| static int | sys_check_charset (THD *thd, set_var *var) |
| static bool | sys_update_charset (THD *thd, set_var *var) |
| static void | sys_set_default_charset (THD *thd, enum_var_type type) |
| static int | sys_check_ftb_syntax (THD *thd, set_var *var) |
| static bool | sys_update_ftb_syntax (THD *thd, set_var *var) |
| static void | sys_default_ftb_syntax (THD *thd, enum_var_type type) |
| static bool | sys_update_init_connect (THD *, set_var *) |
| static void | sys_default_init_connect (THD *, enum_var_type type) |
| static bool | sys_update_init_slave (THD *, set_var *) |
| static void | sys_default_init_slave (THD *, enum_var_type type) |
| static bool | set_option_bit (THD *thd, set_var *var) |
| static bool | set_option_autocommit (THD *thd, set_var *var) |
| static int | check_log_update (THD *thd, set_var *var) |
| static bool | set_log_update (THD *thd, set_var *var) |
| static int | check_pseudo_thread_id (THD *thd, set_var *var) |
| void | fix_binlog_format_after_update (THD *thd, enum_var_type type) |
| static void | fix_low_priority_updates (THD *thd, enum_var_type type) |
| static int | check_tx_isolation (THD *thd, set_var *var) |
| static void | fix_tx_isolation (THD *thd, enum_var_type type) |
| static int | check_completion_type (THD *thd, set_var *var) |
| static void | fix_completion_type (THD *thd, enum_var_type type) |
| static void | fix_net_read_timeout (THD *thd, enum_var_type type) |
| static void | fix_net_write_timeout (THD *thd, enum_var_type type) |
| static void | fix_net_retry_count (THD *thd, enum_var_type type) |
| static void | fix_max_join_size (THD *thd, enum_var_type type) |
| static void | fix_query_cache_size (THD *thd, enum_var_type type) |
| static void | fix_query_cache_min_res_unit (THD *thd, enum_var_type type) |
| static void | fix_myisam_max_sort_file_size (THD *thd, enum_var_type type) |
| static void | fix_max_binlog_size (THD *thd, enum_var_type type) |
| static void | fix_max_relay_log_size (THD *thd, enum_var_type type) |
| static void | fix_max_connections (THD *thd, enum_var_type type) |
| static int | check_max_delayed_threads (THD *thd, set_var *var) |
| static void | fix_thd_mem_root (THD *thd, enum_var_type type) |
| static void | fix_trans_mem_root (THD *thd, enum_var_type type) |
| static void | fix_server_id (THD *thd, enum_var_type type) |
| static KEY_CACHE * | create_key_cache (const char *name, uint length) |
| void | fix_sql_mode_var (THD *thd, enum_var_type type) |
| static byte * | get_error_count (THD *thd) |
| static byte * | get_warning_count (THD *thd) |
| static byte * | get_prepared_stmt_count (THD *thd) |
| static byte * | get_tmpdir (THD *thd) |
| static int | sys_check_log_path (THD *thd, set_var *var) |
| static bool | sys_update_general_log_path (THD *thd, set_var *var) |
| static void | sys_default_general_log_path (THD *thd, enum_var_type type) |
| static bool | sys_update_slow_log_path (THD *thd, set_var *var) |
| static void | sys_default_slow_log_path (THD *thd, enum_var_type type) |
| bool | update_sys_var_str (sys_var_str *var_str, rw_lock_t *var_mutex, set_var *var) |
| static void | fix_completion_type (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_read_timeout (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_write_timeout (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_retry_count (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| void | fix_delay_key_write (THD *thd, enum_var_type type) |
| CHARSET_INFO * | get_old_charset_by_name (const char *name) |
| KEY_CACHE * | get_key_cache (LEX_STRING *cache_name) |
| bool | update_sys_var_str_path (THD *thd, sys_var_str *var_str, set_var *var, const char *log_ext, bool log_state, uint log_type) |
| static struct my_option * | find_option (struct my_option *opt, const char *name) |
| static byte * | get_sys_var_length (const sys_var *var, uint *length, my_bool first) |
| void | set_var_init () |
| void | set_var_free () |
| sys_var * | find_sys_var (const char *str, uint length) |
| int | sql_set_variables (THD *thd, List< set_var_base > *var_list) |
| bool | not_all_support_one_shot (List< set_var_base > *var_list) |
| ulong | fix_sql_mode (ulong sql_mode) |
| gptr | find_named (I_List< NAMED_LIST > *list, const char *name, uint length, NAMED_LIST **found) |
| void | delete_elements (I_List< NAMED_LIST > *list, void(*free_element)(const char *name, gptr)) |
| KEY_CACHE * | get_or_create_key_cache (const char *name, uint length) |
| void | free_key_cache (const char *name, KEY_CACHE *key_cache) |
| bool | process_key_caches (int(*func)(const char *name, KEY_CACHE *)) |
Variables | |
| uint | innobase_flush_log_at_trx_commit |
| ulong | innobase_fast_shutdown |
| long | innobase_mirrored_log_groups |
| long | innobase_log_files_in_group |
| longlong | innobase_log_file_size |
| long | innobase_log_buffer_size |
| longlong | innobase_buffer_pool_size |
| long | innobase_additional_mem_pool_size |
| long | innobase_buffer_pool_awe_mem_mb |
| long | innobase_file_io_threads |
| long | innobase_lock_wait_timeout |
| long | innobase_force_recovery |
| long | innobase_open_files |
| char * | innobase_data_home_dir |
| char * | innobase_data_file_path |
| char * | innobase_log_group_home_dir |
| char * | innobase_log_arch_dir |
| char * | innobase_unix_file_flush_method |
| my_bool | innobase_log_archive |
| my_bool | innobase_use_doublewrite |
| my_bool | innobase_use_checksums |
| my_bool | innobase_file_per_table |
| my_bool | innobase_locks_unsafe_for_binlog |
| ulong | srv_max_buf_pool_modified_pct |
| ulong | srv_max_purge_lag |
| ulong | srv_auto_extend_increment |
| ulong | srv_n_spin_wait_rounds |
| ulong | srv_n_free_tickets_to_enter |
| ulong | srv_thread_sleep_delay |
| ulong | srv_thread_concurrency |
| ulong | srv_commit_concurrency |
| ulong | srv_flush_log_at_trx_commit |
| ulong | ndb_cache_check_time |
| ulong | ndb_extra_logging |
| static HASH | system_variable_hash |
| const char * | bool_type_names [] = { "OFF", "ON", NullS } |
| TYPELIB | bool_typelib |
| const char * | delay_key_write_type_names [] = { "OFF", "ON", "ALL", NullS } |
| TYPELIB | delay_key_write_typelib |
| sys_var_thd_ulong | sys_auto_increment_increment ("auto_increment_increment",&SV::auto_increment_increment) |
| sys_var_thd_ulong | sys_auto_increment_offset ("auto_increment_offset",&SV::auto_increment_offset) |
| sys_var_bool_ptr | sys_automatic_sp_privileges ("automatic_sp_privileges",&sp_automatic_privileges) |
| sys_var_const_str | sys_basedir ("basedir", mysql_home) |
| sys_var_long_ptr | sys_binlog_cache_size ("binlog_cache_size",&binlog_cache_size) |
| sys_var_thd_binlog_format | sys_binlog_format ("binlog_format",&SV::binlog_format) |
| sys_var_thd_ulong | sys_bulk_insert_buff_size ("bulk_insert_buffer_size",&SV::bulk_insert_buff_size) |
| sys_var_character_set_server | sys_character_set_server ("character_set_server") |
| sys_var_const_str | sys_charset_system ("character_set_system",(char *) my_charset_utf8_general_ci.name) |
| sys_var_character_set_database | sys_character_set_database ("character_set_database") |
| sys_var_character_set_client | sys_character_set_client ("character_set_client") |
| sys_var_character_set_connection | sys_character_set_connection ("character_set_connection") |
| sys_var_character_set_results | sys_character_set_results ("character_set_results") |
| sys_var_character_set_filesystem | sys_character_set_filesystem ("character_set_filesystem") |
| sys_var_thd_ulong | sys_completion_type ("completion_type",&SV::completion_type, check_completion_type, fix_completion_type) |
| sys_var_collation_connection | sys_collation_connection ("collation_connection") |
| sys_var_collation_database | sys_collation_database ("collation_database") |
| sys_var_collation_server | sys_collation_server ("collation_server") |
| sys_var_long_ptr | sys_concurrent_insert ("concurrent_insert",&myisam_concurrent_insert) |
| sys_var_long_ptr | sys_connect_timeout ("connect_timeout",&connect_timeout) |
| sys_var_const_str | sys_datadir ("datadir", mysql_real_data_home) |
| sys_var_thd_dbug | sys_dbug ("debug") |
| sys_var_enum | sys_delay_key_write ("delay_key_write",&delay_key_write_options,&delay_key_write_typelib, fix_delay_key_write) |
| sys_var_long_ptr | sys_delayed_insert_limit ("delayed_insert_limit",&delayed_insert_limit) |
| sys_var_long_ptr | sys_delayed_insert_timeout ("delayed_insert_timeout",&delayed_insert_timeout) |
| sys_var_long_ptr | sys_delayed_queue_size ("delayed_queue_size",&delayed_queue_size) |
| sys_var_event_scheduler | sys_event_scheduler ("event_scheduler") |
| sys_var_long_ptr | sys_expire_logs_days ("expire_logs_days",&expire_logs_days) |
| sys_var_bool_ptr | sys_flush ("flush",&myisam_flush) |
| sys_var_long_ptr | sys_flush_time ("flush_time",&flush_time) |
| sys_var_str | sys_ft_boolean_syntax ("ft_boolean_syntax", sys_check_ftb_syntax, sys_update_ftb_syntax, sys_default_ftb_syntax, ft_boolean_syntax) |
| sys_var_str | sys_init_connect ("init_connect", 0, sys_update_init_connect, sys_default_init_connect, 0) |
| sys_var_str | sys_init_slave ("init_slave", 0, sys_update_init_slave, sys_default_init_slave, 0) |
| sys_var_thd_ulong | sys_interactive_timeout ("interactive_timeout",&SV::net_interactive_timeout) |
| sys_var_thd_ulong | sys_join_buffer_size ("join_buffer_size",&SV::join_buff_size) |
| sys_var_key_buffer_size | sys_key_buffer_size ("key_buffer_size") |
| sys_var_key_cache_long | sys_key_cache_block_size ("key_cache_block_size", offsetof(KEY_CACHE, param_block_size)) |
| sys_var_key_cache_long | sys_key_cache_division_limit ("key_cache_division_limit", offsetof(KEY_CACHE, param_division_limit)) |
| sys_var_key_cache_long | sys_key_cache_age_threshold ("key_cache_age_threshold", offsetof(KEY_CACHE, param_age_threshold)) |
| sys_var_bool_ptr | sys_local_infile ("local_infile",&opt_local_infile) |
| sys_var_trust_routine_creators | sys_trust_routine_creators ("log_bin_trust_routine_creators",&trust_function_creators) |
| sys_var_bool_ptr | sys_trust_function_creators ("log_bin_trust_function_creators",&trust_function_creators) |
| sys_var_bool_ptr | sys_log_queries_not_using_indexes ("log_queries_not_using_indexes",&opt_log_queries_not_using_indexes) |
| sys_var_thd_ulong | sys_log_warnings ("log_warnings",&SV::log_warnings) |
| sys_var_thd_ulong | sys_long_query_time ("long_query_time",&SV::long_query_time) |
| sys_var_thd_bool | sys_low_priority_updates ("low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_bool | sys_sql_low_priority_updates ("sql_low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_ulong | sys_max_allowed_packet ("max_allowed_packet",&SV::max_allowed_packet) |
| sys_var_long_ptr | sys_max_binlog_cache_size ("max_binlog_cache_size",&max_binlog_cache_size) |
| sys_var_long_ptr | sys_max_binlog_size ("max_binlog_size",&max_binlog_size, fix_max_binlog_size) |
| sys_var_long_ptr | sys_max_connections ("max_connections",&max_connections, fix_max_connections) |
| sys_var_long_ptr | sys_max_connect_errors ("max_connect_errors",&max_connect_errors) |
| sys_var_thd_ulong | sys_max_insert_delayed_threads ("max_insert_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ulong | sys_max_delayed_threads ("max_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ulong | sys_max_error_count ("max_error_count",&SV::max_error_count) |
| sys_var_thd_ulong | sys_max_heap_table_size ("max_heap_table_size",&SV::max_heap_table_size) |
| sys_var_thd_ulong | sys_pseudo_thread_id ("pseudo_thread_id",&SV::pseudo_thread_id, check_pseudo_thread_id, 0) |
| sys_var_thd_ha_rows | sys_max_join_size ("max_join_size",&SV::max_join_size, fix_max_join_size) |
| sys_var_thd_ulong | sys_max_seeks_for_key ("max_seeks_for_key",&SV::max_seeks_for_key) |
| sys_var_thd_ulong | sys_max_length_for_sort_data ("max_length_for_sort_data",&SV::max_length_for_sort_data) |
| sys_var_thd_ha_rows | sys_sql_max_join_size ("sql_max_join_size",&SV::max_join_size, fix_max_join_size) |
| static sys_var_long_ptr_global | sys_max_prepared_stmt_count ("max_prepared_stmt_count",&max_prepared_stmt_count,&LOCK_prepared_stmt_count) |
| sys_var_long_ptr | sys_max_relay_log_size ("max_relay_log_size",&max_relay_log_size, fix_max_relay_log_size) |
| sys_var_thd_ulong | sys_max_sort_length ("max_sort_length",&SV::max_sort_length) |
| sys_var_thd_ulong | sys_max_sp_recursion_depth ("max_sp_recursion_depth",&SV::max_sp_recursion_depth) |
| sys_var_max_user_conn | sys_max_user_connections ("max_user_connections") |
| sys_var_thd_ulong | sys_max_tmp_tables ("max_tmp_tables",&SV::max_tmp_tables) |
| sys_var_long_ptr | sys_max_write_lock_count ("max_write_lock_count",&max_write_lock_count) |
| sys_var_thd_ulong | sys_multi_range_count ("multi_range_count",&SV::multi_range_count) |
| sys_var_long_ptr | sys_myisam_data_pointer_size ("myisam_data_pointer_size",&myisam_data_pointer_size) |
| sys_var_thd_ulonglong | sys_myisam_max_sort_file_size ("myisam_max_sort_file_size",&SV::myisam_max_sort_file_size, fix_myisam_max_sort_file_size, 1) |
| sys_var_thd_ulong | sys_myisam_repair_threads ("myisam_repair_threads",&SV::myisam_repair_threads) |
| sys_var_thd_ulong | sys_myisam_sort_buffer_size ("myisam_sort_buffer_size",&SV::myisam_sort_buff_size) |
| sys_var_bool_ptr | sys_myisam_use_mmap ("myisam_use_mmap",&opt_myisam_use_mmap) |
| sys_var_thd_enum | sys_myisam_stats_method ("myisam_stats_method",&SV::myisam_stats_method,&myisam_stats_method_typelib, NULL) |
| sys_var_thd_ulong | sys_net_buffer_length ("net_buffer_length",&SV::net_buffer_length) |
| sys_var_thd_ulong | sys_net_read_timeout ("net_read_timeout",&SV::net_read_timeout, 0, fix_net_read_timeout) |
| sys_var_thd_ulong | sys_net_write_timeout ("net_write_timeout",&SV::net_write_timeout, 0, fix_net_write_timeout) |
| sys_var_thd_ulong | sys_net_retry_count ("net_retry_count",&SV::net_retry_count, 0, fix_net_retry_count) |
| sys_var_thd_bool | sys_new_mode ("new",&SV::new_mode) |
| sys_var_thd_bool | sys_old_alter_table ("old_alter_table",&SV::old_alter_table) |
| sys_var_thd_bool | sys_old_passwords ("old_passwords",&SV::old_passwords) |
| sys_var_thd_ulong | sys_optimizer_prune_level ("optimizer_prune_level",&SV::optimizer_prune_level) |
| sys_var_thd_ulong | sys_optimizer_search_depth ("optimizer_search_depth",&SV::optimizer_search_depth) |
| sys_var_thd_ulong | sys_preload_buff_size ("preload_buffer_size",&SV::preload_buff_size) |
| sys_var_thd_ulong | sys_read_buff_size ("read_buffer_size",&SV::read_buff_size) |
| sys_var_bool_ptr | sys_readonly ("read_only",&opt_readonly) |
| sys_var_thd_ulong | sys_read_rnd_buff_size ("read_rnd_buffer_size",&SV::read_rnd_buff_size) |
| sys_var_thd_ulong | sys_div_precincrement ("div_precision_increment",&SV::div_precincrement) |
| sys_var_long_ptr | sys_rpl_recovery_rank ("rpl_recovery_rank",&rpl_recovery_rank) |
| sys_var_long_ptr | sys_query_cache_size ("query_cache_size",&query_cache_size, fix_query_cache_size) |
| sys_var_thd_ulong | sys_range_alloc_block_size ("range_alloc_block_size",&SV::range_alloc_block_size) |
| sys_var_thd_ulong | sys_query_alloc_block_size ("query_alloc_block_size",&SV::query_alloc_block_size, 0, fix_thd_mem_root) |
| sys_var_thd_ulong | sys_query_prealloc_size ("query_prealloc_size",&SV::query_prealloc_size, 0, fix_thd_mem_root) |
| sys_var_readonly | sys_tmpdir ("tmpdir", OPT_GLOBAL, SHOW_CHAR, get_tmpdir) |
| sys_var_thd_ulong | sys_trans_alloc_block_size ("transaction_alloc_block_size",&SV::trans_alloc_block_size, 0, fix_trans_mem_root) |
| sys_var_thd_ulong | sys_trans_prealloc_size ("transaction_prealloc_size",&SV::trans_prealloc_size, 0, fix_trans_mem_root) |
| sys_var_bool_ptr | sys_secure_auth ("secure_auth",&opt_secure_auth) |
| sys_var_long_ptr | sys_server_id ("server_id",&server_id, fix_server_id) |
| sys_var_bool_ptr | sys_slave_compressed_protocol ("slave_compressed_protocol",&opt_slave_compressed_protocol) |
| sys_var_long_ptr | sys_slow_launch_time ("slow_launch_time",&slow_launch_time) |
| sys_var_thd_ulong | sys_sort_buffer ("sort_buffer_size",&SV::sortbuff_size) |
| sys_var_thd_sql_mode | sys_sql_mode ("sql_mode",&SV::sql_mode) |
| sys_var_const_str | sys_ssl_ca ("ssl_ca", NULL) |
| sys_var_const_str | sys_ssl_capath ("ssl_capath", NULL) |
| sys_var_const_str | sys_ssl_cert ("ssl_cert", NULL) |
| sys_var_const_str | sys_ssl_cipher ("ssl_cipher", NULL) |
| sys_var_const_str | sys_ssl_key ("ssl_key", NULL) |
| sys_var_thd_enum | sys_updatable_views_with_limit ("updatable_views_with_limit",&SV::updatable_views_with_limit,&updatable_views_with_limit_typelib) |
| sys_var_thd_table_type | sys_table_type ("table_type",&SV::table_type) |
| sys_var_thd_storage_engine | sys_storage_engine ("storage_engine",&SV::table_type) |
| sys_var_bool_ptr | sys_sync_frm ("sync_frm",&opt_sync_frm) |
| sys_var_const_str | sys_system_time_zone ("system_time_zone", system_time_zone) |
| sys_var_long_ptr | sys_table_def_size ("table_definition_cache",&table_def_size) |
| sys_var_long_ptr | sys_table_cache_size ("table_open_cache",&table_cache_size) |
| sys_var_long_ptr | sys_table_lock_wait_timeout ("table_lock_wait_timeout",&table_lock_wait_timeout) |
| sys_var_long_ptr | sys_thread_cache_size ("thread_cache_size",&thread_cache_size) |
| sys_var_thd_enum | sys_tx_isolation ("tx_isolation",&SV::tx_isolation,&tx_isolation_typelib, fix_tx_isolation, check_tx_isolation) |
| sys_var_thd_ulong | sys_tmp_table_size ("tmp_table_size",&SV::tmp_table_size) |
| sys_var_bool_ptr | sys_timed_mutexes ("timed_mutexes",&timed_mutexes) |
| sys_var_const_str | sys_version ("version", server_version) |
| sys_var_const_str | sys_version_comment ("version_comment", MYSQL_COMPILATION_COMMENT) |
| sys_var_const_str | sys_version_compile_machine ("version_compile_machine", MACHINE_TYPE) |
| sys_var_const_str | sys_version_compile_os ("version_compile_os", SYSTEM_TYPE) |
| sys_var_thd_ulong | sys_net_wait_timeout ("wait_timeout",&SV::net_wait_timeout) |
| sys_var_thd_bool | sys_engine_condition_pushdown ("engine_condition_pushdown",&SV::engine_condition_pushdown) |
| sys_var_thd_ulong | sys_ndb_autoincrement_prefetch_sz ("ndb_autoincrement_prefetch_sz",&SV::ndb_autoincrement_prefetch_sz) |
| sys_var_thd_bool | sys_ndb_force_send ("ndb_force_send",&SV::ndb_force_send) |
| sys_var_thd_bool | sys_ndb_use_exact_count ("ndb_use_exact_count",&SV::ndb_use_exact_count) |
| sys_var_thd_bool | sys_ndb_use_transactions ("ndb_use_transactions",&SV::ndb_use_transactions) |
| sys_var_long_ptr | sys_ndb_cache_check_time ("ndb_cache_check_time",&ndb_cache_check_time) |
| sys_var_thd_bool | sys_ndb_index_stat_enable ("ndb_index_stat_enable",&SV::ndb_index_stat_enable) |
| sys_var_thd_ulong | sys_ndb_index_stat_cache_entries ("ndb_index_stat_cache_entries",&SV::ndb_index_stat_cache_entries) |
| sys_var_thd_ulong | sys_ndb_index_stat_update_freq ("ndb_index_stat_update_freq",&SV::ndb_index_stat_update_freq) |
| sys_var_long_ptr | sys_ndb_extra_logging ("ndb_extra_logging",&ndb_extra_logging) |
| sys_var_thd_bool | sys_ndb_use_copying_alter_table ("ndb_use_copying_alter_table",&SV::ndb_use_copying_alter_table) |
| sys_var_thd_date_time_format | sys_time_format ("time_format",&SV::time_format, MYSQL_TIMESTAMP_TIME) |
| sys_var_thd_date_time_format | sys_date_format ("date_format",&SV::date_format, MYSQL_TIMESTAMP_DATE) |
| sys_var_thd_date_time_format | sys_datetime_format ("datetime_format",&SV::datetime_format, MYSQL_TIMESTAMP_DATETIME) |
| sys_var_thd_bit | sys_autocommit ("autocommit", 0, set_option_autocommit, OPTION_NOT_AUTOCOMMIT, 1) |
| static sys_var_thd_bit | sys_big_tables ("big_tables", 0, set_option_bit, OPTION_BIG_TABLES) |
| static sys_var_thd_bit | sys_sql_big_tables ("sql_big_tables", 0, set_option_bit, OPTION_BIG_TABLES) |
| static sys_var_thd_bit | sys_big_selects ("sql_big_selects", 0, set_option_bit, OPTION_BIG_SELECTS) |
| static sys_var_thd_bit | sys_log_off ("sql_log_off", check_log_update, set_option_bit, OPTION_LOG_OFF) |
| static sys_var_thd_bit | sys_log_update ("sql_log_update", check_log_update, set_log_update, OPTION_BIN_LOG) |
| static sys_var_thd_bit | sys_log_binlog ("sql_log_bin", check_log_update, set_option_bit, OPTION_BIN_LOG) |
| static sys_var_thd_bit | sys_sql_warnings ("sql_warnings", 0, set_option_bit, OPTION_WARNINGS) |
| static sys_var_thd_bit | sys_sql_notes ("sql_notes", 0, set_option_bit, OPTION_SQL_NOTES) |
| static sys_var_thd_bit | sys_auto_is_null ("sql_auto_is_null", 0, set_option_bit, OPTION_AUTO_IS_NULL) |
| static sys_var_thd_bit | sys_safe_updates ("sql_safe_updates", 0, set_option_bit, OPTION_SAFE_UPDATES) |
| static sys_var_thd_bit | sys_buffer_results ("sql_buffer_result", 0, set_option_bit, OPTION_BUFFER_RESULT) |
| static sys_var_thd_bit | sys_quote_show_create ("sql_quote_show_create", 0, set_option_bit, OPTION_QUOTE_SHOW_CREATE) |
| static sys_var_thd_bit | sys_foreign_key_checks ("foreign_key_checks", 0, set_option_bit, OPTION_NO_FOREIGN_KEY_CHECKS, 1) |
| static sys_var_thd_bit | sys_unique_checks ("unique_checks", 0, set_option_bit, OPTION_RELAXED_UNIQUE_CHECKS, 1) |
| static sys_var_thd_ha_rows | sys_select_limit ("sql_select_limit",&SV::select_limit) |
| static sys_var_timestamp | sys_timestamp ("timestamp") |
| static sys_var_last_insert_id | sys_last_insert_id ("last_insert_id") |
| static sys_var_last_insert_id | sys_identity ("identity") |
| static sys_var_thd_lc_time_names | sys_lc_time_names ("lc_time_names") |
| static sys_var_insert_id | sys_insert_id ("insert_id") |
| static sys_var_readonly | sys_error_count ("error_count", OPT_SESSION, SHOW_LONG, get_error_count) |
| static sys_var_readonly | sys_warning_count ("warning_count", OPT_SESSION, SHOW_LONG, get_warning_count) |
| static sys_var_readonly | sys_prepared_stmt_count ("prepared_stmt_count", OPT_GLOBAL, SHOW_LONG, get_prepared_stmt_count) |
| static sys_var_rand_seed1 | sys_rand_seed1 ("rand_seed1") |
| static sys_var_rand_seed2 | sys_rand_seed2 ("rand_seed2") |
| static sys_var_thd_ulong | sys_default_week_format ("default_week_format",&SV::default_week_format) |
| sys_var_thd_ulong | sys_group_concat_max_len ("group_concat_max_len",&SV::group_concat_max_len) |
| sys_var_thd_time_zone | sys_time_zone ("time_zone") |
| sys_var_have_variable | sys_have_archive_db ("have_archive",&have_archive_db) |
| sys_var_have_variable | sys_have_blackhole_db ("have_blackhole_engine",&have_blackhole_db) |
| sys_var_have_variable | sys_have_compress ("have_compress",&have_compress) |
| sys_var_have_variable | sys_have_crypt ("have_crypt",&have_crypt) |
| sys_var_have_variable | sys_have_csv_db ("have_csv",&have_csv_db) |
| sys_var_have_variable | sys_have_dlopen ("have_dynamic_loading",&have_dlopen) |
| sys_var_have_variable | sys_have_example_db ("have_example_engine",&have_example_db) |
| sys_var_have_variable | sys_have_federated_db ("have_federated_engine",&have_federated_db) |
| sys_var_have_variable | sys_have_geometry ("have_geometry",&have_geometry) |
| sys_var_have_variable | sys_have_innodb ("have_innodb",&have_innodb) |
| sys_var_have_variable | sys_have_merge_db ("have_merge",&have_merge_db) |
| sys_var_have_variable | sys_have_ndbcluster ("have_ndbcluster",&have_ndbcluster) |
| sys_var_have_variable | sys_have_openssl ("have_openssl",&have_openssl) |
| sys_var_have_variable | sys_have_partition_db ("have_partitioning",&have_partition_db) |
| sys_var_have_variable | sys_have_query_cache ("have_query_cache",&have_query_cache) |
| sys_var_have_variable | sys_have_rtree_keys ("have_rtree_keys",&have_rtree_keys) |
| sys_var_have_variable | sys_have_symlink ("have_symlink",&have_symlink) |
| sys_var_have_variable | sys_have_row_based_replication ("have_row_based_replication",&have_row_based_replication) |
| sys_var_const_str | sys_license ("license", STRINGIFY_ARG(LICENSE)) |
| sys_var_log_state | sys_var_general_log ("general_log",&opt_log, QUERY_LOG_GENERAL) |
| sys_var_log_state | sys_var_slow_query_log ("slow_query_log",&opt_slow_log, QUERY_LOG_SLOW) |
| sys_var_str | sys_var_general_log_path ("general_log_file", sys_check_log_path, sys_update_general_log_path, sys_default_general_log_path, opt_logname) |
| sys_var_str | sys_var_slow_log_path ("slow_query_log_file", sys_check_log_path, sys_update_slow_log_path, sys_default_slow_log_path, opt_slow_logname) |
| sys_var_log_output | sys_var_log_output_state ("log_output",&log_output_options,&log_output_typelib, 0) |
| SHOW_VAR | init_vars [] |
| static my_old_conv | old_conv [] |
| CHARSET_INFO * | character_set_filesystem |
| LEX_STRING | default_key_cache_base = {(char *) "default", 7 } |
| static KEY_CACHE | zero_key_cache |
| typedef struct old_names_map_st my_old_conv |
| static int check_completion_type | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1224 of file set_var.cc.
References buf, ER_WRONG_VALUE_FOR_VAR, llstr(), my_error(), MYF, sys_var::name, Item::val_int(), set_var::value, and set_var::var.
01225 { 01226 longlong val= var->value->val_int(); 01227 if (val < 0 || val > 2) 01228 { 01229 char buf[64]; 01230 my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), var->var->name, llstr(val, buf)); 01231 return 1; 01232 } 01233 return 0; 01234 }
Here is the call graph for this function:

| static int check_log_update | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 3089 of file set_var.cc.
References ER_SPECIFIC_ACCESS_DENIED_ERROR, my_error(), MYF, and SUPER_ACL.
03090 { 03091 #ifndef NO_EMBEDDED_ACCESS_CHECKS 03092 if (!(thd->security_ctx->master_access & SUPER_ACL)) 03093 { 03094 my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER"); 03095 return 1; 03096 } 03097 #endif 03098 return 0; 03099 }
Here is the call graph for this function:

| static int check_max_delayed_threads | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1396 of file set_var.cc.
References buf, ER_WRONG_VALUE_FOR_VAR, global_system_variables, llstr(), system_variables::max_insert_delayed_threads, my_error(), MYF, sys_var::name, OPT_GLOBAL, set_var::type, Item::val_int(), set_var::value, and set_var::var.
01397 { 01398 longlong val= var->value->val_int(); 01399 if (var->type != OPT_GLOBAL && val != 0 && 01400 val != (longlong) global_system_variables.max_insert_delayed_threads) 01401 { 01402 char buf[64]; 01403 my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), var->var->name, llstr(val, buf)); 01404 return 1; 01405 } 01406 return 0; 01407 }
Here is the call graph for this function:

| static int check_pseudo_thread_id | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 3124 of file set_var.cc.
References ER_SPECIFIC_ACCESS_DENIED_ERROR, my_error(), MYF, set_var::save_result, SUPER_ACL, set_var::ulonglong_value, Item::val_int(), and set_var::value.
03125 { 03126 var->save_result.ulonglong_value= var->value->val_int(); 03127 #ifndef NO_EMBEDDED_ACCESS_CHECKS 03128 if (thd->security_ctx->master_access & SUPER_ACL) 03129 return 0; 03130 else 03131 { 03132 my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER"); 03133 return 1; 03134 } 03135 #else 03136 return 0; 03137 #endif 03138 }
Here is the call graph for this function:

| static int check_tx_isolation | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1200 of file set_var.cc.
References ER_CANT_CHANGE_TX_ISOLATION, my_error(), MYF, OPT_DEFAULT, SERVER_STATUS_IN_TRANS, and set_var::type.
01201 { 01202 if (var->type == OPT_DEFAULT && (thd->server_status & SERVER_STATUS_IN_TRANS)) 01203 { 01204 my_error(ER_CANT_CHANGE_TX_ISOLATION, MYF(0)); 01205 return 1; 01206 } 01207 return 0; 01208 }
Here is the call graph for this function:

Definition at line 3799 of file set_var.cc.
References DBUG_ENTER, DBUG_PRINT, DBUG_RETURN, dflt_key_cache_var, key_caches, my_free, my_malloc(), MY_WME, MY_ZEROFILL, MYF, st_key_cache::param_age_threshold, st_key_cache::param_block_size, and st_key_cache::param_division_limit.
Referenced by get_or_create_key_cache(), sys_var_key_cache_long::update(), and sys_var_key_buffer_size::update().
03800 { 03801 KEY_CACHE *key_cache; 03802 DBUG_ENTER("create_key_cache"); 03803 DBUG_PRINT("enter",("name: %.*s", length, name)); 03804 03805 if ((key_cache= (KEY_CACHE*) my_malloc(sizeof(KEY_CACHE), 03806 MYF(MY_ZEROFILL | MY_WME)))) 03807 { 03808 if (!new NAMED_LIST(&key_caches, name, length, (gptr) key_cache)) 03809 { 03810 my_free((char*) key_cache, MYF(0)); 03811 key_cache= 0; 03812 } 03813 else 03814 { 03815 /* 03816 Set default values for a key cache 03817 The values in dflt_key_cache_var is set by my_getopt() at startup 03818 03819 We don't set 'buff_size' as this is used to enable the key cache 03820 */ 03821 key_cache->param_block_size= dflt_key_cache_var.param_block_size; 03822 key_cache->param_division_limit= dflt_key_cache_var.param_division_limit; 03823 key_cache->param_age_threshold= dflt_key_cache_var.param_age_threshold; 03824 } 03825 } 03826 DBUG_RETURN(key_cache); 03827 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void delete_elements | ( | I_List< NAMED_LIST > * | list, | |
| void(*)(const char *name, gptr) | free_element | |||
| ) |
Definition at line 3783 of file set_var.cc.
References NAMED_LIST::data, DBUG_ENTER, DBUG_VOID_RETURN, list(), and NAMED_LIST::name.
Referenced by clean_up().
03785 { 03786 NAMED_LIST *element; 03787 DBUG_ENTER("delete_elements"); 03788 while ((element= list->get())) 03789 { 03790 (*free_element)(element->name, element->data); 03791 delete element; 03792 } 03793 DBUG_VOID_RETURN; 03794 }
Here is the call graph for this function:

Here is the caller graph for this function:

| gptr find_named | ( | I_List< NAMED_LIST > * | list, | |
| const char * | name, | |||
| uint | length, | |||
| NAMED_LIST ** | found | |||
| ) |
Definition at line 3765 of file set_var.cc.
References NAMED_LIST::cmp(), NAMED_LIST::data, and list().
Referenced by get_key_cache(), and sys_var_key_buffer_size::update().
03767 { 03768 I_List_iterator<NAMED_LIST> it(*list); 03769 NAMED_LIST *element; 03770 while ((element= it++)) 03771 { 03772 if (element->cmp(name, length)) 03773 { 03774 if (found) 03775 *found= element; 03776 return element->data; 03777 } 03778 } 03779 return 0; 03780 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3208 of file set_var.cc.
References getopt_compare_strings(), opt(), and strlen().
Referenced by set_var_init().
03209 { 03210 uint length=strlen(name); 03211 for (; opt->name; opt++) 03212 { 03213 if (!getopt_compare_strings(opt->name, name, length) && 03214 !opt->name[length]) 03215 { 03216 /* 03217 Only accept the option if one can set values through it. 03218 If not, there is no default value or limits in the option. 03219 */ 03220 return (opt->value) ? opt : 0; 03221 } 03222 } 03223 return 0; 03224 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3286 of file set_var.cc.
References ER_UNKNOWN_SYSTEM_VARIABLE, hash_search(), my_error(), MYF, strlen(), and system_variable_hash.
Referenced by get_system_var().
03287 { 03288 sys_var *var= (sys_var*) hash_search(&system_variable_hash, 03289 (byte*) str, 03290 length ? length : 03291 strlen(str)); 03292 if (!var) 03293 my_error(ER_UNKNOWN_SYSTEM_VARIABLE, MYF(0), (char*) str); 03294 return var; 03295 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void fix_binlog_format_after_update | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) |
Definition at line 1362 of file set_var.cc.
01363 { 01364 #ifdef HAVE_ROW_BASED_REPLICATION 01365 thd->reset_current_stmt_binlog_row_based(); 01366 #endif /*HAVE_ROW_BASED_REPLICATION*/ 01367 }
| static void fix_completion_type | ( | THD *thd | __attribute__(unused), | |
| enum_var_type type | __attribute__(unused) | |||
| ) | [static] |
| static void fix_completion_type | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
| void fix_delay_key_write | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) |
Definition at line 1295 of file set_var.cc.
References DELAY_KEY_WRITE_ALL, DELAY_KEY_WRITE_NONE, DELAY_KEY_WRITE_ON, delay_key_write_options, HA_OPEN_DELAY_KEY_WRITE, ha_open_options, and myisam_delay_key_write.
Referenced by get_options().
01296 { 01297 switch ((enum_delay_key_write) delay_key_write_options) { 01298 case DELAY_KEY_WRITE_NONE: 01299 myisam_delay_key_write=0; 01300 break; 01301 case DELAY_KEY_WRITE_ON: 01302 myisam_delay_key_write=1; 01303 break; 01304 case DELAY_KEY_WRITE_ALL: 01305 myisam_delay_key_write=1; 01306 ha_open_options|= HA_OPEN_DELAY_KEY_WRITE; 01307 break; 01308 } 01309 }
Here is the caller graph for this function:

| static void fix_low_priority_updates | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1165 of file set_var.cc.
References OPT_GLOBAL, TL_WRITE, and TL_WRITE_LOW_PRIORITY.
01166 { 01167 if (type != OPT_GLOBAL) 01168 thd->update_lock_default= (thd->variables.low_priority_updates ? 01169 TL_WRITE_LOW_PRIORITY : TL_WRITE); 01170 }
| static void fix_max_binlog_size | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1370 of file set_var.cc.
References DBUG_ENTER, DBUG_PRINT, DBUG_VOID_RETURN, max_binlog_size, max_relay_log_size, mysql_bin_log, and MYSQL_BIN_LOG::set_max_size().
01371 { 01372 DBUG_ENTER("fix_max_binlog_size"); 01373 DBUG_PRINT("info",("max_binlog_size=%lu max_relay_log_size=%lu", 01374 max_binlog_size, max_relay_log_size)); 01375 mysql_bin_log.set_max_size(max_binlog_size); 01376 #ifdef HAVE_REPLICATION 01377 if (!max_relay_log_size) 01378 active_mi->rli.relay_log.set_max_size(max_binlog_size); 01379 #endif 01380 DBUG_VOID_RETURN; 01381 }
Here is the call graph for this function:

| static void fix_max_connections | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1409 of file set_var.cc.
References global_system_variables, max_connections, system_variables::max_insert_delayed_threads, and resize_thr_alarm.
01410 { 01411 #ifndef EMBEDDED_LIBRARY 01412 resize_thr_alarm(max_connections + 01413 global_system_variables.max_insert_delayed_threads + 10); 01414 #endif 01415 }
| static void fix_max_join_size | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1184 of file set_var.cc.
References HA_POS_ERROR, OPT_GLOBAL, and OPTION_BIG_SELECTS.
01185 { 01186 if (type != OPT_GLOBAL) 01187 { 01188 if (thd->variables.max_join_size == HA_POS_ERROR) 01189 thd->options|= OPTION_BIG_SELECTS; 01190 else 01191 thd->options&= ~OPTION_BIG_SELECTS; 01192 } 01193 }
| static void fix_max_relay_log_size | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1383 of file set_var.cc.
References DBUG_ENTER, DBUG_PRINT, DBUG_VOID_RETURN, max_binlog_size, and max_relay_log_size.
01384 { 01385 DBUG_ENTER("fix_max_relay_log_size"); 01386 DBUG_PRINT("info",("max_binlog_size=%lu max_relay_log_size=%lu", 01387 max_binlog_size, max_relay_log_size)); 01388 #ifdef HAVE_REPLICATION 01389 active_mi->rli.relay_log.set_max_size(max_relay_log_size ? 01390 max_relay_log_size: max_binlog_size); 01391 #endif 01392 DBUG_VOID_RETURN; 01393 }
| static void fix_myisam_max_sort_file_size | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1174 of file set_var.cc.
References global_system_variables, system_variables::myisam_max_sort_file_size, and myisam_max_temp_length.
01175 { 01176 myisam_max_temp_length= 01177 (my_off_t) global_system_variables.myisam_max_sort_file_size; 01178 }
| static void fix_net_read_timeout | ( | THD *thd | __attribute__(unused), | |
| enum_var_type type | __attribute__(unused) | |||
| ) | [static] |
| static void fix_net_read_timeout | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
| static void fix_net_retry_count | ( | THD *thd | __attribute__(unused), | |
| enum_var_type type | __attribute__(unused) | |||
| ) | [static] |
| static void fix_net_retry_count | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
| static void fix_net_write_timeout | ( | THD *thd | __attribute__(unused), | |
| enum_var_type type | __attribute__(unused) | |||
| ) | [static] |
| static void fix_net_write_timeout | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
| static void fix_query_cache_min_res_unit | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
| static void fix_query_cache_size | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1273 of file set_var.cc.
References current_thd, ER, ER_WARN_QC_RESIZE, push_warning_printf(), query_cache, query_cache_size, Query_cache::resize(), and MYSQL_ERROR::WARN_LEVEL_WARN.
01274 { 01275 #ifdef HAVE_QUERY_CACHE 01276 ulong requested= query_cache_size; 01277 query_cache.resize(query_cache_size); 01278 if (requested != query_cache_size) 01279 push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, 01280 ER_WARN_QC_RESIZE, ER(ER_WARN_QC_RESIZE), 01281 requested, query_cache_size); 01282 #endif 01283 }
Here is the call graph for this function:

| static void fix_server_id | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1438 of file set_var.cc.
References server_id_supplied.
01439 { 01440 server_id_supplied = 1; 01441 }
Definition at line 3707 of file set_var.cc.
References MODE_ANSI, MODE_ANSI_QUOTES, MODE_DB2, MODE_ERROR_FOR_DIVISION_BY_ZERO, MODE_HIGH_NOT_PRECEDENCE, MODE_IGNORE_SPACE, MODE_MAXDB, MODE_MSSQL, MODE_MYSQL323, MODE_MYSQL40, MODE_NO_AUTO_CREATE_USER, MODE_NO_FIELD_OPTIONS, MODE_NO_KEY_OPTIONS, MODE_NO_TABLE_OPTIONS, MODE_NO_ZERO_DATE, MODE_NO_ZERO_IN_DATE, MODE_ORACLE, MODE_PIPES_AS_CONCAT, MODE_POSTGRESQL, MODE_REAL_AS_FLOAT, MODE_STRICT_ALL_TABLES, MODE_STRICT_TRANS_TABLES, and MODE_TRADITIONAL.
Referenced by fix_sql_mode_var(), and get_one_option().
03708 { 03709 /* 03710 Note that we dont set 03711 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | MODE_NO_FIELD_OPTIONS 03712 to allow one to get full use of MySQL in this mode. 03713 */ 03714 03715 if (sql_mode & MODE_ANSI) 03716 { 03717 sql_mode|= (MODE_REAL_AS_FLOAT | MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03718 MODE_IGNORE_SPACE); 03719 /* 03720 MODE_ONLY_FULL_GROUP_BY removed from ANSI mode because it is currently 03721 overly restrictive (see BUG#8510). 03722 */ 03723 } 03724 if (sql_mode & MODE_ORACLE) 03725 sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03726 MODE_IGNORE_SPACE | 03727 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | 03728 MODE_NO_FIELD_OPTIONS | MODE_NO_AUTO_CREATE_USER); 03729 if (sql_mode & MODE_MSSQL) 03730 sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03731 MODE_IGNORE_SPACE | 03732 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | 03733 MODE_NO_FIELD_OPTIONS); 03734 if (sql_mode & MODE_POSTGRESQL) 03735 sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03736 MODE_IGNORE_SPACE | 03737 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | 03738 MODE_NO_FIELD_OPTIONS); 03739 if (sql_mode & MODE_DB2) 03740 sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03741 MODE_IGNORE_SPACE | 03742 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | 03743 MODE_NO_FIELD_OPTIONS); 03744 if (sql_mode & MODE_MAXDB) 03745 sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES | 03746 MODE_IGNORE_SPACE | 03747 MODE_NO_KEY_OPTIONS | MODE_NO_TABLE_OPTIONS | 03748 MODE_NO_FIELD_OPTIONS | MODE_NO_AUTO_CREATE_USER); 03749 if (sql_mode & MODE_MYSQL40) 03750 sql_mode|= MODE_HIGH_NOT_PRECEDENCE; 03751 if (sql_mode & MODE_MYSQL323) 03752 sql_mode|= MODE_HIGH_NOT_PRECEDENCE; 03753 if (sql_mode & MODE_TRADITIONAL) 03754 sql_mode|= (MODE_STRICT_TRANS_TABLES | MODE_STRICT_ALL_TABLES | 03755 MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE | 03756 MODE_ERROR_FOR_DIVISION_BY_ZERO | MODE_NO_AUTO_CREATE_USER); 03757 return sql_mode; 03758 }
Here is the caller graph for this function:

| void fix_sql_mode_var | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) |
Definition at line 3687 of file set_var.cc.
References fix_sql_mode(), global_system_variables, MODE_NO_BACKSLASH_ESCAPES, OPT_GLOBAL, SERVER_STATUS_NO_BACKSLASH_ESCAPES, and system_variables::sql_mode.
03688 { 03689 if (type == OPT_GLOBAL) 03690 global_system_variables.sql_mode= 03691 fix_sql_mode(global_system_variables.sql_mode); 03692 else 03693 { 03694 thd->variables.sql_mode= fix_sql_mode(thd->variables.sql_mode); 03695 /* 03696 Update thd->server_status 03697 */ 03698 if (thd->variables.sql_mode & MODE_NO_BACKSLASH_ESCAPES) 03699 thd->server_status|= SERVER_STATUS_NO_BACKSLASH_ESCAPES; 03700 else 03701 thd->server_status&= ~SERVER_STATUS_NO_BACKSLASH_ESCAPES; 03702 } 03703 }
Here is the call graph for this function:

| static void fix_thd_mem_root | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1418 of file set_var.cc.
References OPT_GLOBAL, and reset_root_defaults().
01419 { 01420 if (type != OPT_GLOBAL) 01421 reset_root_defaults(thd->mem_root, 01422 thd->variables.query_alloc_block_size, 01423 thd->variables.query_prealloc_size); 01424 }
Here is the call graph for this function:

| static void fix_trans_mem_root | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1427 of file set_var.cc.
References OPT_GLOBAL, and reset_root_defaults().
01428 { 01429 #ifdef USING_TRANSACTIONS 01430 if (type != OPT_GLOBAL) 01431 reset_root_defaults(&thd->transaction.mem_root, 01432 thd->variables.trans_alloc_block_size, 01433 thd->variables.trans_prealloc_size); 01434 #endif 01435 }
Here is the call graph for this function:

| static void fix_tx_isolation | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1214 of file set_var.cc.
References OPT_SESSION.
01215 { 01216 if (type == OPT_SESSION) 01217 thd->session_tx_isolation= ((enum_tx_isolation) 01218 thd->variables.tx_isolation); 01219 }
| void free_key_cache | ( | const char * | name, | |
| KEY_CACHE * | key_cache | |||
| ) |
Definition at line 3845 of file set_var.cc.
References ha_end_key_cache(), my_free, and MYF.
Referenced by clean_up().
03846 { 03847 ha_end_key_cache(key_cache); 03848 my_free((char*) key_cache, MYF(0)); 03849 }
Here is the call graph for this function:

Here is the caller graph for this function:

| static byte * get_error_count | ( | THD * | thd | ) | [static] |
Definition at line 3148 of file set_var.cc.
References MYSQL_ERROR::WARN_LEVEL_ERROR.
03149 { 03150 thd->sys_var_tmp.long_value= 03151 thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_ERROR]; 03152 return (byte*) &thd->sys_var_tmp.long_value; 03153 }
| KEY_CACHE* get_key_cache | ( | LEX_STRING * | cache_name | ) |
Definition at line 2389 of file set_var.cc.
References default_key_cache_base, find_named(), key_caches, LEX_STRING::length, LOCK_global_system_variables, safe_mutex_assert_owner, and LEX_STRING::str.
Referenced by get_or_create_key_cache(), mysql_assign_to_keycache(), sys_var_key_cache_long::update(), sys_var_key_buffer_size::update(), and sys_var_key_cache_param::value_ptr().
02390 { 02391 safe_mutex_assert_owner(&LOCK_global_system_variables); 02392 if (!cache_name || ! cache_name->length) 02393 cache_name= &default_key_cache_base; 02394 return ((KEY_CACHE*) find_named(&key_caches, 02395 cache_name->str, cache_name->length, 0)); 02396 }
Here is the call graph for this function:

Here is the caller graph for this function:

| CHARSET_INFO* get_old_charset_by_name | ( | const char * | name | ) |
Definition at line 2036 of file set_var.cc.
References get_charset_by_csname(), my_charset_latin1, MY_CS_PRIMARY, my_strcasecmp, MYF, old_names_map_st::new_name, old_conv, and old_names_map_st::old_name.
Referenced by sys_var_character_set::check().
02037 { 02038 my_old_conv *conv; 02039 02040 for (conv= old_conv; conv->old_name; conv++) 02041 { 02042 if (!my_strcasecmp(&my_charset_latin1, name, conv->old_name)) 02043 return get_charset_by_csname(conv->new_name, MY_CS_PRIMARY, MYF(0)); 02044 } 02045 return NULL; 02046 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3830 of file set_var.cc.
References create_key_cache(), get_key_cache(), LEX_STRING::length, LOCK_global_system_variables, pthread_mutex_lock, pthread_mutex_unlock, and LEX_STRING::str.
Referenced by mysql_getopt_value(), and mysql_init_variables().
03831 { 03832 LEX_STRING key_cache_name; 03833 KEY_CACHE *key_cache; 03834 03835 key_cache_name.str= (char *) name; 03836 key_cache_name.length= length; 03837 pthread_mutex_lock(&LOCK_global_system_variables); 03838 if (!(key_cache= get_key_cache(&key_cache_name))) 03839 key_cache= create_key_cache(name, length); 03840 pthread_mutex_unlock(&LOCK_global_system_variables); 03841 return key_cache; 03842 }
Here is the call graph for this function:

Here is the caller graph for this function:

| static byte * get_prepared_stmt_count | ( | THD * | thd | ) | [static] |
Definition at line 3155 of file set_var.cc.
References LOCK_prepared_stmt_count, prepared_stmt_count, pthread_mutex_lock, and pthread_mutex_unlock.
03156 { 03157 pthread_mutex_lock(&LOCK_prepared_stmt_count); 03158 thd->sys_var_tmp.ulong_value= prepared_stmt_count; 03159 pthread_mutex_unlock(&LOCK_prepared_stmt_count); 03160 return (byte*) &thd->sys_var_tmp.ulong_value; 03161 }
Definition at line 3231 of file set_var.cc.
References sys_var::name, and sys_var::name_length.
Referenced by set_var_init().
03233 { 03234 *length= var->name_length; 03235 return (byte*) var->name; 03236 }
Here is the caller graph for this function:

| static byte * get_tmpdir | ( | THD * | thd | ) | [static] |
Definition at line 3181 of file set_var.cc.
References opt_mysql_tmpdir.
03182 { 03183 if (opt_mysql_tmpdir) 03184 return (byte *)opt_mysql_tmpdir; 03185 return (byte*)mysql_tmpdir; 03186 }
| static byte * get_warning_count | ( | THD * | thd | ) | [static] |
Definition at line 3140 of file set_var.cc.
References MYSQL_ERROR::WARN_LEVEL_NOTE, and MYSQL_ERROR::WARN_LEVEL_WARN.
03141 { 03142 thd->sys_var_tmp.long_value= 03143 (thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_NOTE] + 03144 thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_WARN]); 03145 return (byte*) &thd->sys_var_tmp.long_value; 03146 }
| bool not_all_support_one_shot | ( | List< set_var_base > * | var_list | ) |
Definition at line 3362 of file set_var.cc.
References set_var_base::no_support_one_shot().
Referenced by mysql_execute_command().
03363 { 03364 List_iterator_fast<set_var_base> it(*var_list); 03365 set_var_base *var; 03366 while ((var= it++)) 03367 { 03368 if (var->no_support_one_shot()) 03369 return 1; 03370 } 03371 return 0; 03372 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3852 of file set_var.cc.
References NAMED_LIST::data, key_caches, and NAMED_LIST::name.
Referenced by init_server_components(), mysql_print_status(), and refresh_status().
03853 { 03854 I_List_iterator<NAMED_LIST> it(key_caches); 03855 NAMED_LIST *element; 03856 03857 while ((element= it++)) 03858 { 03859 KEY_CACHE *key_cache= (KEY_CACHE *) element->data; 03860 func(element->name, key_cache); 03861 } 03862 return 0; 03863 }
Here is the caller graph for this function:

Definition at line 3101 of file set_var.cc.
References ER, ER_UPDATE_LOG_DEPRECATED_IGNORED, ER_UPDATE_LOG_DEPRECATED_TRANSLATED, opt_sql_bin_update, push_warning(), set_option_bit(), and MYSQL_ERROR::WARN_LEVEL_NOTE.
03102 { 03103 /* 03104 The update log is not supported anymore since 5.0. 03105 See sql/mysqld.cc/, comments in function init_server_components() for an 03106 explaination of the different warnings we send below 03107 */ 03108 03109 if (opt_sql_bin_update) 03110 { 03111 push_warning(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, 03112 ER_UPDATE_LOG_DEPRECATED_TRANSLATED, 03113 ER(ER_UPDATE_LOG_DEPRECATED_TRANSLATED)); 03114 } 03115 else 03116 push_warning(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, 03117 ER_UPDATE_LOG_DEPRECATED_IGNORED, 03118 ER(ER_UPDATE_LOG_DEPRECATED_IGNORED)); 03119 set_option_bit(thd, var); 03120 return 0; 03121 }
Here is the call graph for this function:

Definition at line 3058 of file set_var.cc.
References ha_commit, OPTION_BEGIN, OPTION_KEEP_LOG, OPTION_NOT_AUTOCOMMIT, OPTION_STATUS_NO_TRANS_UPDATE, set_var::save_result, SERVER_STATUS_AUTOCOMMIT, set_var::ulong_value, and set_var::var.
03059 { 03060 /* The test is negative as the flag we use is NOT autocommit */ 03061 03062 ulong org_options=thd->options; 03063 03064 if (var->save_result.ulong_value != 0) 03065 thd->options&= ~((sys_var_thd_bit*) var->var)->bit_flag; 03066 else 03067 thd->options|= ((sys_var_thd_bit*) var->var)->bit_flag; 03068 03069 if ((org_options ^ thd->options) & OPTION_NOT_AUTOCOMMIT) 03070 { 03071 if ((org_options & OPTION_NOT_AUTOCOMMIT)) 03072 { 03073 /* We changed to auto_commit mode */ 03074 thd->options&= ~(ulong) (OPTION_BEGIN | OPTION_STATUS_NO_TRANS_UPDATE | 03075 OPTION_KEEP_LOG); 03076 thd->server_status|= SERVER_STATUS_AUTOCOMMIT; 03077 if (ha_commit(thd)) 03078 return 1; 03079 } 03080 else 03081 { 03082 thd->options&= ~(ulong) (OPTION_STATUS_NO_TRANS_UPDATE); 03083 thd->server_status&= ~SERVER_STATUS_AUTOCOMMIT; 03084 } 03085 } 03086 return 0; 03087 }
Definition at line 3047 of file set_var.cc.
References sys_var_thd_bit::bit_flag, sys_var_thd_bit::reverse, set_var::save_result, set_var::ulong_value, and set_var::var.
Referenced by set_log_update().
03048 { 03049 sys_var_thd_bit *sys_var= ((sys_var_thd_bit*) var->var); 03050 if ((var->save_result.ulong_value != 0) == sys_var->reverse) 03051 thd->options&= ~sys_var->bit_flag; 03052 else 03053 thd->options|= sys_var->bit_flag; 03054 return 0; 03055 }
Here is the caller graph for this function:

| void set_var_free | ( | ) |
Definition at line 3266 of file set_var.cc.
References hash_free(), and system_variable_hash.
Referenced by clean_up().
03267 { 03268 hash_free(&system_variable_hash); 03269 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void set_var_init | ( | ) |
Definition at line 3244 of file set_var.cc.
References find_option(), sys_var::first, get_sys_var_length(), hash_init, my_hash_insert(), my_long_options, sys_var::name, sys_var::name_length, sys_var::next, sys_var::option_limits, strlen(), sys_max_join_size, sys_sql_max_join_size, sys_var::sys_vars, system_charset_info, and system_variable_hash.
Referenced by init_common_variables().
03245 { 03246 sys_var *var; 03247 03248 hash_init(&system_variable_hash, system_charset_info, sys_var::sys_vars, 0, 03249 0, (hash_get_key) get_sys_var_length, 0, 0); 03250 for (var= sys_var::first; var; var= var->next) 03251 { 03252 var->name_length= strlen(var->name); 03253 var->option_limits= find_option(my_long_options, var->name); 03254 my_hash_insert(&system_variable_hash, (byte*) var); 03255 } 03256 /* 03257 Special cases 03258 Needed because MySQL can't find the limits for a variable it it has 03259 a different name than the command line option. 03260 As these variables are deprecated, this code will disappear soon... 03261 */ 03262 sys_sql_max_join_size.option_limits= sys_max_join_size.option_limits; 03263 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int sql_set_variables | ( | THD * | thd, | |
| List< set_var_base > * | var_list | |||
| ) |
Definition at line 3320 of file set_var.cc.
References set_var_base::check(), DBUG_ENTER, DBUG_RETURN, err, error, free_underlaid_joins(), List_iterator_fast< T >::rewind(), test, and set_var_base::update().
Referenced by get_var_with_binlog(), and mysql_execute_command().
03321 { 03322 int error; 03323 List_iterator_fast<set_var_base> it(*var_list); 03324 DBUG_ENTER("sql_set_variables"); 03325 03326 set_var_base *var; 03327 while ((var=it++)) 03328 { 03329 if ((error= var->check(thd))) 03330 goto err; 03331 } 03332 if (!(error= test(thd->net.report_error))) 03333 { 03334 it.rewind(); 03335 while ((var= it++)) 03336 error|= var->update(thd); // Returns 0, -1 or 1 03337 } 03338 03339 err: 03340 free_underlaid_joins(thd, &thd->lex->select_lex); 03341 DBUG_RETURN(error); 03342 }
Here is the call graph for this function:

Here is the caller graph for this function:

| static int sys_check_charset | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
| static int sys_check_ftb_syntax | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1133 of file set_var.cc.
References String::c_ptr(), ER_SPECIFIC_ACCESS_DENIED_ERROR, ft_boolean_check_syntax_string(), my_error(), MYF, Item::str_value, SUPER_ACL, and set_var::value.
01134 { 01135 if (thd->security_ctx->master_access & SUPER_ACL) 01136 return (ft_boolean_check_syntax_string((byte*) 01137 var->value->str_value.c_ptr()) ? 01138 -1 : 0); 01139 else 01140 { 01141 my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER"); 01142 return 1; 01143 } 01144 }
Here is the call graph for this function:

| static int sys_check_log_path | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 2574 of file set_var.cc.
References bzero, dirname_part(), F_OK, FN_REFLEN, my_access, MY_S_ISREG, MY_S_IWRITE, my_stat(), MY_STAT, MYF, path, String::ptr(), Item::str_value, unpack_filename(), set_var::value, and W_OK.
02575 { 02576 char path[FN_REFLEN]; 02577 MY_STAT f_stat; 02578 const char *var_path= var->value->str_value.ptr(); 02579 bzero(&f_stat, sizeof(MY_STAT)); 02580 02581 (void) unpack_filename(path, var_path); 02582 if (my_stat(path, &f_stat, MYF(0))) 02583 { 02584 /* Check if argument is a file and we have 'write' permission */ 02585 if (!MY_S_ISREG(f_stat.st_mode) || 02586 !(f_stat.st_mode & MY_S_IWRITE)) 02587 return -1; 02588 } 02589 else 02590 { 02591 /* 02592 Check if directory exists and 02593 we have permission to create file & write to file 02594 */ 02595 (void) dirname_part(path, var_path); 02596 if (my_access(path, (F_OK|W_OK))) 02597 return -1; 02598 } 02599 return 0; 02600 }
Here is the call graph for this function:

| static void sys_default_ftb_syntax | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1153 of file set_var.cc.
References def_ft_boolean_syntax, ft_boolean_syntax, and strmake().
01154 { 01155 strmake(ft_boolean_syntax, def_ft_boolean_syntax, 01156 sizeof(ft_boolean_syntax)-1); 01157 }
Here is the call graph for this function:

| static void sys_default_general_log_path | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 2673 of file set_var.cc.
References QUERY_LOG_GENERAL, sys_var_general_log_path, and update_sys_var_str_path().
02674 { 02675 (void) update_sys_var_str_path(thd, &sys_var_general_log_path, 02676 0, ".log", opt_log, QUERY_LOG_GENERAL); 02677 }
Here is the call graph for this function:

| static void sys_default_init_connect | ( | THD * | , | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1116 of file set_var.cc.
References LOCK_sys_init_connect, sys_init_connect, and update_sys_var_str().
01117 { 01118 update_sys_var_str(&sys_init_connect, &LOCK_sys_init_connect, 0); 01119 }
Here is the call graph for this function:

| static void sys_default_init_slave | ( | THD * | , | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1128 of file set_var.cc.
References LOCK_sys_init_slave, and update_sys_var_str().
01129 { 01130 update_sys_var_str(&sys_init_slave, &LOCK_sys_init_slave, 0); 01131 }
Here is the call graph for this function:

| static void sys_default_slow_log_path | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 2688 of file set_var.cc.
References QUERY_LOG_SLOW, sys_var_slow_log_path, and update_sys_var_str_path().
02689 { 02690 (void) update_sys_var_str_path(thd, &sys_var_slow_log_path, 02691 0, "-slow.log", opt_slow_log, 02692 QUERY_LOG_SLOW); 02693 }
Here is the call graph for this function:

| static void sys_set_default_charset | ( | THD * | thd, | |
| enum_var_type | type | |||
| ) | [static] |
Definition at line 1146 of file set_var.cc.
References String::c_ptr(), ft_boolean_syntax, Item::str_value, strmake(), and set_var::value.
01147 { 01148 strmake(ft_boolean_syntax, var->value->str_value.c_ptr(), 01149 sizeof(ft_boolean_syntax)-1); 01150 return 0; 01151 }
Here is the call graph for this function:

Definition at line 2666 of file set_var.cc.
References QUERY_LOG_GENERAL, sys_var_general_log_path, and update_sys_var_str_path().
02667 { 02668 return update_sys_var_str_path(thd, &sys_var_general_log_path, 02669 var, ".log", opt_log, QUERY_LOG_GENERAL); 02670 }
Here is the call graph for this function:

Definition at line 1110 of file set_var.cc.
References LOCK_sys_init_connect, sys_init_connect, and update_sys_var_str().
01111 { 01112 return update_sys_var_str(&sys_init_connect, &LOCK_sys_init_connect, var); 01113 }
Here is the call graph for this function:

Definition at line 1122 of file set_var.cc.
References LOCK_sys_init_slave, and update_sys_var_str().
01123 { 01124 return update_sys_var_str(&sys_init_slave, &LOCK_sys_init_slave, var); 01125 }
Here is the call graph for this function:

Definition at line 2680 of file set_var.cc.
References QUERY_LOG_SLOW, sys_var_slow_log_path, and update_sys_var_str_path().
02681 { 02682 return update_sys_var_str_path(thd, &sys_var_slow_log_path, 02683 var, "-slow.log", opt_slow_log, 02684 QUERY_LOG_SLOW); 02685 }
Here is the call graph for this function:

| bool update_sys_var_str | ( | sys_var_str * | var_str, | |
| rw_lock_t * | var_mutex, | |||
| set_var * | var | |||
| ) |
Definition at line 1087 of file set_var.cc.
References String::length(), MY_ALLOW_ZERO_PTR, my_free, my_strndup(), MYF, String::ptr(), rw_unlock, rw_wrlock, Item::str_value, sys_var_str::value, set_var::value, and sys_var_str::value_length.
Referenced by sys_default_init_connect(), sys_default_init_slave(), sys_update_init_connect(), and sys_update_init_slave().
01089 { 01090 char *res= 0, *old_value=(char *)(var ? var->value->str_value.ptr() : 0); 01091 uint new_length= (var ? var->value->str_value.length() : 0); 01092 if (!old_value) 01093 old_value= (char*) ""; 01094 if (!(res= my_strndup(old_value, new_length, MYF(0)))) 01095 return 1; 01096 /* 01097 Replace the old value in such a way that the any thread using 01098 the value will work. 01099 */ 01100 rw_wrlock(var_mutex); 01101 old_value= var_str->value; 01102 var_str->value= res; 01103 var_str->value_length= new_length; 01104 rw_unlock(var_mutex); 01105 my_free(old_value, MYF(MY_ALLOW_ZERO_PTR)); 01106 return 0; 01107 }
Here is the call graph for this function:

Here is the caller graph for this function:

| bool update_sys_var_str_path | ( | THD * | thd, | |
| sys_var_str * | var_str, | |||
| set_var * | var, | |||
| const char * | log_ext, | |||
| bool | log_state, | |||
| uint | log_type | |||
| ) |
Definition at line 2603 of file set_var.cc.
References MYSQL_LOG::close(), DBUG_ASSERT, err, FN_REFLEN, LOGGER::get_log_file_handler(), LOGGER::get_slow_log_file_handler(), String::length(), LOGGER::lock(), LOCK_global_system_variables, logger, make_default_log_name(), MY_ALLOW_ZERO_PTR, MY_FAE, my_free, my_strndup(), MY_WME, MYF, MYSQL_QUERY_LOG::open_query_log(), MYSQL_QUERY_LOG::open_slow_log(), pthread_mutex_lock, pthread_mutex_unlock, String::ptr(), QUERY_LOG_GENERAL, QUERY_LOG_SLOW, Item::str_value, strlen(), sys_var_general_log_path, LOGGER::unlock(), sys_var_str::value, set_var::value, and sys_var_str::value_length.
Referenced by sys_default_general_log_path(), sys_default_slow_log_path(), sys_update_general_log_path(), and sys_update_slow_log_path().
02606 { 02607 MYSQL_QUERY_LOG *file_log; 02608 char buff[FN_REFLEN]; 02609 char *res= 0, *old_value=(char *)(var ? var->value->str_value.ptr() : 0); 02610 bool result= 0; 02611 uint str_length= (var ? var->value->str_value.length() : 0); 02612 02613 switch (log_type) { 02614 case QUERY_LOG_SLOW: 02615 file_log= logger.get_slow_log_file_handler(); 02616 break; 02617 case QUERY_LOG_GENERAL: 02618 file_log= logger.get_log_file_handler(); 02619 break; 02620 default: 02621 DBUG_ASSERT(0); 02622 } 02623 02624 if (!old_value) 02625 { 02626 old_value= make_default_log_name(buff, log_ext); 02627 str_length= strlen(old_value); 02628 } 02629 if (!(res= my_strndup(old_value, str_length, MYF(MY_FAE+MY_WME)))) 02630 { 02631 result= 1; 02632 goto err; 02633 } 02634 02635 pthread_mutex_lock(&LOCK_global_system_variables); 02636 logger.lock(); 02637 02638 if (file_log && log_state) 02639 file_log->close(0); 02640 old_value= var_str->value; 02641 var_str->value= res; 02642 var_str->value_length= str_length; 02643 my_free(old_value, MYF(MY_ALLOW_ZERO_PTR)); 02644 if (file_log && log_state) 02645 { 02646 switch (log_type) { 02647 case QUERY_LOG_SLOW: 02648 file_log->open_slow_log(sys_var_general_log_path.value); 02649 break; 02650 case QUERY_LOG_GENERAL: 02651 file_log->open_query_log(sys_var_general_log_path.value); 02652 break; 02653 default: 02654 DBUG_ASSERT(0); 02655 } 02656 } 02657 02658 logger.unlock(); 02659 pthread_mutex_unlock(&LOCK_global_system_variables); 02660 02661 err: 02662 return result; 02663 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const char* bool_type_names[] = { "OFF", "ON", NullS } |
Definition at line 107 of file set_var.cc.
Initial value:
{
array_elements(bool_type_names)-1, "", bool_type_names, NULL
}
Definition at line 108 of file set_var.cc.
Referenced by sys_var_thd_bool::check(), sys_var_bool_ptr::check(), and sys_var_thd_bit::check().
Definition at line 558 of file mysqld.cc.
Referenced by init_common_variables(), mysql_init_variables(), and sys_var_character_set_filesystem::set_default().
| LEX_STRING default_key_cache_base = {(char *) "default", 7 } |
Definition at line 2385 of file set_var.cc.
Referenced by get_key_cache(), mysql_init_variables(), sys_var_key_cache_long::update(), and sys_var_key_buffer_size::update().
| const char* delay_key_write_type_names[] = { "OFF", "ON", "ALL", NullS } |
Definition at line 113 of file set_var.cc.
| char * innobase_data_file_path |
| char* innobase_data_home_dir |
| char * innobase_log_arch_dir |
| long innobase_open_files |
my_old_conv old_conv[] [static] |
Initial value:
{
{ "cp1251_koi8" , "cp1251" },
{ "cp1250_latin2" , "cp1250" },
{ "kam_latin2" , "keybcs2" },
{ "mac_latin2" , "MacRoman" },
{ "macce_latin2" , "MacCE" },
{ "pc2_latin2" , "pclatin2" },
{ "vga_latin2" , "pclatin1" },
{ "koi8_cp1251" , "koi8r" },
{ "win1251ukr_koi8_ukr" , "win1251ukr" },
{ "koi8_ukr_win1251ukr" , "koi8u" },
{ NULL , NULL }
}
Definition at line 2021 of file set_var.cc.
Referenced by get_old_charset_by_name().
| sys_var_thd_ulong sys_auto_increment_increment("auto_increment_increment",&SV::auto_increment_increment) |
| sys_var_thd_ulong sys_auto_increment_offset("auto_increment_offset",&SV::auto_increment_offset) |
sys_var_thd_bit sys_auto_is_null("sql_auto_is_null", 0, set_option_bit, OPTION_AUTO_IS_NULL) [static] |
| sys_var_thd_bit sys_autocommit("autocommit", 0, set_option_autocommit, OPTION_NOT_AUTOCOMMIT, 1) |
| sys_var_bool_ptr sys_automatic_sp_privileges("automatic_sp_privileges",&sp_automatic_privileges) |
| sys_var_const_str sys_basedir("basedir", mysql_home) |
sys_var_thd_bit sys_big_selects("sql_big_selects", 0, set_option_bit, OPTION_BIG_SELECTS) [static] |
sys_var_thd_bit sys_big_tables("big_tables", 0, set_option_bit, OPTION_BIG_TABLES) [static] |
| sys_var_long_ptr sys_binlog_cache_size("binlog_cache_size",&binlog_cache_size) |
| sys_var_thd_binlog_format sys_binlog_format("binlog_format",&SV::binlog_format) |
sys_var_thd_bit sys_buffer_results("sql_buffer_result", 0, set_option_bit, OPTION_BUFFER_RESULT) [static] |
| sys_var_thd_ulong sys_bulk_insert_buff_size("bulk_insert_buffer_size",&SV::bulk_insert_buff_size) |
| sys_var_character_set_client sys_character_set_client("character_set_client") |
| sys_var_character_set_connection sys_character_set_connection("character_set_connection") |
| sys_var_character_set_database sys_character_set_database("character_set_database") |
| sys_var_character_set_filesystem sys_character_set_filesystem("character_set_filesystem") |
| sys_var_character_set_results sys_character_set_results("character_set_results") |
| sys_var_character_set_server sys_character_set_server("character_set_server") |
| sys_var_const_str sys_charset_system("character_set_system",(char *) my_charset_utf8_general_ci.name) |
Referenced by mysql_init_variables().
| sys_var_collation_connection sys_collation_connection("collation_connection") |
| sys_var_collation_database sys_collation_database("collation_database") |
| sys_var_collation_server sys_collation_server("collation_server") |
| sys_var_thd_ulong sys_completion_type("completion_type",&SV::completion_type, check_completion_type, fix_completion_type) |
| sys_var_long_ptr sys_concurrent_insert("concurrent_insert",&myisam_concurrent_insert) |
| sys_var_long_ptr sys_connect_timeout("connect_timeout",&connect_timeout) |
| sys_var_const_str sys_datadir("datadir", mysql_real_data_home) |
| sys_var_thd_date_time_format sys_date_format("date_format",&SV::date_format, MYSQL_TIMESTAMP_DATE) |
| sys_var_thd_date_time_format sys_datetime_format("datetime_format",&SV::datetime_format, MYSQL_TIMESTAMP_DATETIME) |
| sys_var_thd_dbug sys_dbug("debug") |
sys_var_thd_ulong sys_default_week_format("default_week_format",&SV::default_week_format) [static] |
| sys_var_enum sys_delay_key_write("delay_key_write",&delay_key_write_options,&delay_key_write_typelib, fix_delay_key_write) |
| sys_var_long_ptr sys_delayed_insert_limit("delayed_insert_limit",&delayed_insert_limit) |
| sys_var_long_ptr sys_delayed_insert_timeout("delayed_insert_timeout",&delayed_insert_timeout) |
| sys_var_long_ptr sys_delayed_queue_size("delayed_queue_size",&delayed_queue_size) |
| sys_var_thd_ulong sys_div_precincrement("div_precision_increment",&SV::div_precincrement) |
| sys_var_thd_bool sys_engine_condition_pushdown("engine_condition_pushdown",&SV::engine_condition_pushdown) |
sys_var_readonly sys_error_count("error_count", OPT_SESSION, SHOW_LONG, get_error_count) [static] |
| sys_var_event_scheduler sys_event_scheduler("event_scheduler") |
| sys_var_long_ptr sys_expire_logs_days("expire_logs_days",&expire_logs_days) |
| sys_var_bool_ptr sys_flush("flush",&myisam_flush) |
| sys_var_long_ptr sys_flush_time("flush_time",&flush_time) |
sys_var_thd_bit sys_foreign_key_checks("foreign_key_checks", 0, set_option_bit, OPTION_NO_FOREIGN_KEY_CHECKS, 1) [static] |
| sys_var_str sys_ft_boolean_syntax("ft_boolean_syntax", sys_check_ftb_syntax, sys_update_ftb_syntax, sys_default_ftb_syntax, ft_boolean_syntax) |
| sys_var_thd_ulong sys_group_concat_max_len("group_concat_max_len",&SV::group_concat_max_len) |
| sys_var_have_variable sys_have_archive_db("have_archive",&have_archive_db) |
| sys_var_have_variable sys_have_blackhole_db("have_blackhole_engine",&have_blackhole_db) |
| sys_var_have_variable sys_have_compress("have_compress",&have_compress) |
| sys_var_have_variable sys_have_crypt("have_crypt",&have_crypt) |
| sys_var_have_variable sys_have_csv_db("have_csv",&have_csv_db) |
| sys_var_have_variable sys_have_dlopen("have_dynamic_loading",&have_dlopen) |
| sys_var_have_variable sys_have_example_db("have_example_engine",&have_example_db) |
| sys_var_have_variable sys_have_federated_db("have_federated_engine",&have_federated_db) |
| sys_var_have_variable sys_have_geometry("have_geometry",&have_geometry) |
| sys_var_have_variable sys_have_innodb("have_innodb",&have_innodb) |
| sys_var_have_variable sys_have_merge_db("have_merge",&have_merge_db) |
| sys_var_have_variable sys_have_ndbcluster("have_ndbcluster",&have_ndbcluster) |
| sys_var_have_variable sys_have_openssl("have_openssl",&have_openssl) |
| sys_var_have_variable sys_have_partition_db("have_partitioning",&have_partition_db) |
| sys_var_have_variable sys_have_query_cache("have_query_cache",&have_query_cache) |
| sys_var_have_variable sys_have_row_based_replication("have_row_based_replication",&have_row_based_replication) |
| sys_var_have_variable sys_have_rtree_keys("have_rtree_keys",&have_rtree_keys) |
| sys_var_have_variable sys_have_symlink("have_symlink",&have_symlink) |
sys_var_last_insert_id sys_identity("identity") [static] |
| sys_var_str sys_init_connect("init_connect", 0, sys_update_init_connect, sys_default_init_connect, 0) |
Referenced by clean_up(), handle_one_connection(), init_common_variables(), sys_default_init_connect(), and sys_update_init_connect().
| sys_var_str sys_init_slave("init_slave", 0, sys_update_init_slave, sys_default_init_slave, 0) |
Referenced by clean_up(), and init_common_variables().
sys_var_insert_id sys_insert_id("insert_id") [static] |
| sys_var_thd_ulong sys_interactive_timeout("interactive_timeout",&SV::net_interactive_timeout) |
| sys_var_thd_ulong sys_join_buffer_size("join_buffer_size",&SV::join_buff_size) |
| sys_var_key_buffer_size sys_key_buffer_size("key_buffer_size") |
| sys_var_key_cache_long sys_key_cache_age_threshold("key_cache_age_threshold", offsetof(KEY_CACHE,param_age_threshold)) |
| sys_var_key_cache_long sys_key_cache_block_size("key_cache_block_size", offsetof(KEY_CACHE,param_block_size)) |
| sys_var_key_cache_long sys_key_cache_division_limit("key_cache_division_limit", offsetof(KEY_CACHE,param_division_limit)) |
sys_var_last_insert_id sys_last_insert_id("last_insert_id") [static] |
sys_var_thd_lc_time_names sys_lc_time_names("lc_time_names") [static] |
| sys_var_const_str sys_license("license", STRINGIFY_ARG(LICENSE)) |
| sys_var_bool_ptr sys_local_infile("local_infile",&opt_local_infile) |
sys_var_thd_bit sys_log_binlog("sql_log_bin", check_log_update, set_option_bit, OPTION_BIN_LOG) [static] |
sys_var_thd_bit sys_log_off("sql_log_off", check_log_update, set_option_bit, OPTION_LOG_OFF) [static] |
| sys_var_bool_ptr sys_log_queries_not_using_indexes("log_queries_not_using_indexes",&opt_log_queries_not_using_indexes) |
sys_var_thd_bit sys_log_update("sql_log_update", check_log_update, set_log_update, OPTION_BIN_LOG) [static] |
| sys_var_thd_ulong sys_log_warnings("log_warnings",&SV::log_warnings) |
| sys_var_thd_ulong sys_long_query_time("long_query_time",&SV::long_query_time) |
| sys_var_thd_bool sys_low_priority_updates("low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_ulong sys_max_allowed_packet("max_allowed_packet",&SV::max_allowed_packet) |
| sys_var_long_ptr sys_max_binlog_cache_size("max_binlog_cache_size",&max_binlog_cache_size) |
| sys_var_long_ptr sys_max_binlog_size("max_binlog_size",&max_binlog_size, fix_max_binlog_size) |
| sys_var_long_ptr sys_max_connect_errors("max_connect_errors",&max_connect_errors) |
| sys_var_long_ptr sys_max_connections("max_connections",&max_connections, fix_max_connections) |
| sys_var_thd_ulong sys_max_delayed_threads("max_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ulong sys_max_error_count("max_error_count",&SV::max_error_count) |
| sys_var_thd_ulong sys_max_heap_table_size("max_heap_table_size",&SV::max_heap_table_size) |
| sys_var_thd_ulong sys_max_insert_delayed_threads("max_insert_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ha_rows sys_max_join_size("max_join_size",&SV::max_join_size, fix_max_join_size) |
Referenced by set_var_init().
| sys_var_thd_ulong sys_max_length_for_sort_data("max_length_for_sort_data",&SV::max_length_for_sort_data) |
sys_var_long_ptr_global sys_max_prepared_stmt_count("max_prepared_stmt_count",&max_prepared_stmt_count,&LOCK_prepared_stmt_count) [static] |
| sys_var_long_ptr sys_max_relay_log_size("max_relay_log_size",&max_relay_log_size, fix_max_relay_log_size) |
| sys_var_thd_ulong sys_max_seeks_for_key("max_seeks_for_key",&SV::max_seeks_for_key) |
| sys_var_thd_ulong sys_max_sort_length("max_sort_length",&SV::max_sort_length) |
| sys_var_thd_ulong sys_max_sp_recursion_depth("max_sp_recursion_depth",&SV::max_sp_recursion_depth) |
| sys_var_thd_ulong sys_max_tmp_tables("max_tmp_tables",&SV::max_tmp_tables) |
| sys_var_max_user_conn sys_max_user_connections("max_user_connections") |
| sys_var_long_ptr sys_max_write_lock_count("max_write_lock_count",&max_write_lock_count) |
| sys_var_thd_ulong sys_multi_range_count("multi_range_count",&SV::multi_range_count) |
| sys_var_long_ptr sys_myisam_data_pointer_size("myisam_data_pointer_size",&myisam_data_pointer_size) |
| sys_var_thd_ulonglong sys_myisam_max_sort_file_size("myisam_max_sort_file_size",&SV::myisam_max_sort_file_size, fix_myisam_max_sort_file_size, 1) |
| sys_var_thd_ulong sys_myisam_repair_threads("myisam_repair_threads",&SV::myisam_repair_threads) |
| sys_var_thd_ulong sys_myisam_sort_buffer_size("myisam_sort_buffer_size",&SV::myisam_sort_buff_size) |
| sys_var_thd_enum sys_myisam_stats_method("myisam_stats_method",&SV::myisam_stats_method,&myisam_stats_method_typelib, NULL) |
| sys_var_bool_ptr sys_myisam_use_mmap("myisam_use_mmap",&opt_myisam_use_mmap) |
| sys_var_thd_ulong sys_ndb_autoincrement_prefetch_sz("ndb_autoincrement_prefetch_sz",&SV::ndb_autoincrement_prefetch_sz) |
| sys_var_long_ptr sys_ndb_cache_check_time("ndb_cache_check_time",&ndb_cache_check_time) |
| sys_var_long_ptr sys_ndb_extra_logging("ndb_extra_logging",&ndb_extra_logging) |
| sys_var_thd_bool sys_ndb_force_send("ndb_force_send",&SV::ndb_force_send) |
| sys_var_thd_ulong sys_ndb_index_stat_cache_entries("ndb_index_stat_cache_entries",&SV::ndb_index_stat_cache_entries) |
| sys_var_thd_bool sys_ndb_index_stat_enable("ndb_index_stat_enable",&SV::ndb_index_stat_enable) |
| sys_var_thd_ulong sys_ndb_index_stat_update_freq("ndb_index_stat_update_freq",&SV::ndb_index_stat_update_freq) |
| sys_var_thd_bool sys_ndb_use_copying_alter_table("ndb_use_copying_alter_table",&SV::ndb_use_copying_alter_table) |
| sys_var_thd_bool sys_ndb_use_exact_count("ndb_use_exact_count",&SV::ndb_use_exact_count) |
| sys_var_thd_bool sys_ndb_use_transactions("ndb_use_transactions",&SV::ndb_use_transactions) |
| sys_var_thd_ulong sys_net_buffer_length("net_buffer_length",&SV::net_buffer_length) |
| sys_var_thd_ulong sys_net_read_timeout("net_read_timeout",&SV::net_read_timeout, 0, fix_net_read_timeout) |
| sys_var_thd_ulong sys_net_retry_count("net_retry_count",&SV::net_retry_count, 0, fix_net_retry_count) |
| sys_var_thd_ulong sys_net_wait_timeout("wait_timeout",&SV::net_wait_timeout) |
| sys_var_thd_ulong sys_net_write_timeout("net_write_timeout",&SV::net_write_timeout, 0, fix_net_write_timeout) |
| sys_var_thd_bool sys_new_mode("new",&SV::new_mode) |
| sys_var_thd_bool sys_old_alter_table("old_alter_table",&SV::old_alter_table) |
| sys_var_thd_bool sys_old_passwords("old_passwords",&SV::old_passwords) |
Referenced by acl_load().
| sys_var_thd_ulong sys_optimizer_prune_level("optimizer_prune_level",&SV::optimizer_prune_level) |
| sys_var_thd_ulong sys_optimizer_search_depth("optimizer_search_depth",&SV::optimizer_search_depth) |
| sys_var_thd_ulong sys_preload_buff_size("preload_buffer_size",&SV::preload_buff_size) |
sys_var_readonly sys_prepared_stmt_count("prepared_stmt_count", OPT_GLOBAL, SHOW_LONG, get_prepared_stmt_count) [static] |
| sys_var_thd_ulong sys_pseudo_thread_id("pseudo_thread_id",&SV::pseudo_thread_id, check_pseudo_thread_id, 0) |
| sys_var_thd_ulong sys_query_alloc_block_size("query_alloc_block_size",&SV::query_alloc_block_size, 0, fix_thd_mem_root) |
| sys_var_long_ptr sys_query_cache_size("query_cache_size",&query_cache_size, fix_query_cache_size) |
| sys_var_thd_ulong sys_query_prealloc_size("query_prealloc_size",&SV::query_prealloc_size, 0, fix_thd_mem_root) |
sys_var_thd_bit sys_quote_show_create("sql_quote_show_create", 0, set_option_bit, OPTION_QUOTE_SHOW_CREATE) [static] |
sys_var_rand_seed1 sys_rand_seed1("rand_seed1") [static] |
sys_var_rand_seed2 sys_rand_seed2("rand_seed2") [static] |
| sys_var_thd_ulong sys_range_alloc_block_size("range_alloc_block_size",&SV::range_alloc_block_size) |
| sys_var_thd_ulong sys_read_buff_size("read_buffer_size",&SV::read_buff_size) |
| sys_var_thd_ulong sys_read_rnd_buff_size("read_rnd_buffer_size",&SV::read_rnd_buff_size) |
| sys_var_bool_ptr sys_readonly("read_only",&opt_readonly) |
| sys_var_long_ptr sys_rpl_recovery_rank("rpl_recovery_rank",&rpl_recovery_rank) |
sys_var_thd_bit sys_safe_updates("sql_safe_updates", 0, set_option_bit, OPTION_SAFE_UPDATES) [static] |
| sys_var_bool_ptr sys_secure_auth("secure_auth",&opt_secure_auth) |
sys_var_thd_ha_rows sys_select_limit("sql_select_limit",&SV::select_limit) [static] |
| sys_var_long_ptr sys_server_id("server_id",&server_id, fix_server_id) |
| sys_var_bool_ptr sys_slave_compressed_protocol("slave_compressed_protocol",&opt_slave_compressed_protocol) |
| sys_var_long_ptr sys_slow_launch_time("slow_launch_time",&slow_launch_time) |
| sys_var_thd_ulong sys_sort_buffer("sort_buffer_size",&SV::sortbuff_size) |
sys_var_thd_bit sys_sql_big_tables("sql_big_tables", 0, set_option_bit, OPTION_BIG_TABLES) [static] |
| sys_var_thd_bool sys_sql_low_priority_updates("sql_low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_ha_rows sys_sql_max_join_size("sql_max_join_size",&SV::max_join_size, fix_max_join_size) |
Referenced by set_var_init().
| sys_var_thd_sql_mode sys_sql_mode("sql_mode",&SV::sql_mode) |
sys_var_thd_bit sys_sql_notes("sql_notes", 0, set_option_bit, OPTION_SQL_NOTES) [static] |
sys_var_thd_bit sys_sql_warnings("sql_warnings", 0, set_option_bit, OPTION_WARNINGS) [static] |
| sys_var_const_str sys_ssl_ca("ssl_ca", NULL) |
| sys_var_const_str sys_ssl_capath("ssl_capath", NULL) |
| sys_var_const_str sys_ssl_cert("ssl_cert", NULL) |
| sys_var_const_str sys_ssl_cipher("ssl_cipher", NULL) |
| sys_var_const_str sys_ssl_key("ssl_key", NULL) |
| sys_var_thd_storage_engine sys_storage_engine("storage_engine",&SV::table_type) |
| sys_var_bool_ptr sys_sync_frm("sync_frm",&opt_sync_frm) |
| sys_var_const_str sys_system_time_zone("system_time_zone", system_time_zone) |
| sys_var_long_ptr sys_table_cache_size("table_open_cache",&table_cache_size) |
| sys_var_long_ptr sys_table_def_size("table_definition_cache",&table_def_size) |
| sys_var_long_ptr sys_table_lock_wait_timeout("table_lock_wait_timeout",&table_lock_wait_timeout) |
| sys_var_thd_table_type sys_table_type("table_type",&SV::table_type) |
| sys_var_long_ptr sys_thread_cache_size("thread_cache_size",&thread_cache_size) |
| sys_var_thd_date_time_format sys_time_format("time_format",&SV::time_format, MYSQL_TIMESTAMP_TIME) |
| sys_var_thd_time_zone sys_time_zone("time_zone") |
| sys_var_bool_ptr sys_timed_mutexes("timed_mutexes",&timed_mutexes) |
sys_var_timestamp sys_timestamp("timestamp") [static] |
| sys_var_thd_ulong sys_tmp_table_size("tmp_table_size",&SV::tmp_table_size) |
| sys_var_readonly sys_tmpdir("tmpdir", OPT_GLOBAL, SHOW_CHAR, get_tmpdir) |
| sys_var_thd_ulong sys_trans_alloc_block_size("transaction_alloc_block_size",&SV::trans_alloc_block_size, 0, fix_trans_mem_root) |
| sys_var_thd_ulong sys_trans_prealloc_size("transaction_prealloc_size",&SV::trans_prealloc_size, 0, fix_trans_mem_root) |
| sys_var_bool_ptr sys_trust_function_creators("log_bin_trust_function_creators",&trust_function_creators) |
| sys_var_trust_routine_creators sys_trust_routine_creators("log_bin_trust_routine_creators",&trust_function_creators) |
| sys_var_thd_enum sys_tx_isolation("tx_isolation",&SV::tx_isolation,&tx_isolation_typelib, fix_tx_isolation, check_tx_isolation) |
sys_var_thd_bit sys_unique_checks("unique_checks", 0, set_option_bit, OPTION_RELAXED_UNIQUE_CHECKS, 1) [static] |
| sys_var_thd_enum sys_updatable_views_with_limit("updatable_views_with_limit",&SV::updatable_views_with_limit,&updatable_views_with_limit_typelib) |
| sys_var_log_state sys_var_general_log("general_log",&opt_log, QUERY_LOG_GENERAL) |
| sys_var_str sys_var_general_log_path("general_log_file", sys_check_log_path, sys_update_general_log_path, sys_default_general_log_path, opt_logname) |
| sys_var_log_output sys_var_log_output_state("log_output",&log_output_options,&log_output_typelib, 0) |
| sys_var_str sys_var_slow_log_path("slow_query_log_file", sys_check_log_path, sys_update_slow_log_path, sys_default_slow_log_path, opt_slow_logname) |
| sys_var_log_state sys_var_slow_query_log("slow_query_log",&opt_slow_log, QUERY_LOG_SLOW) |
| sys_var_const_str sys_version("version", server_version) |
| sys_var_const_str sys_version_comment("version_comment", MYSQL_COMPILATION_COMMENT) |
| sys_var_const_str sys_version_compile_machine("version_compile_machine", MACHINE_TYPE) |
| sys_var_const_str sys_version_compile_os("version_compile_os", SYSTEM_TYPE) |
sys_var_readonly sys_warning_count("warning_count", OPT_SESSION, SHOW_LONG, get_warning_count) [static] |
HASH system_variable_hash [static] |
Definition at line 106 of file set_var.cc.
Referenced by find_sys_var(), set_var_free(), and set_var_init().
KEY_CACHE zero_key_cache [static] |
1.4.7

