Commit 3416e8ac authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: sys_vars.cc

add DEPRECATED() warning for variables with "deprecated" in the
help text. Remove redundant initializers.
parent 9c9b4590
...@@ -118,6 +118,8 @@ connection node_1; ...@@ -118,6 +118,8 @@ connection node_1;
# Case 1: wsrep_load_data_splitting = ON & LOAD DATA with 20002 # Case 1: wsrep_load_data_splitting = ON & LOAD DATA with 20002
# entries. # entries.
SET GLOBAL wsrep_load_data_splitting = ON; SET GLOBAL wsrep_load_data_splitting = ON;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
connection node_2; connection node_2;
...@@ -130,6 +132,8 @@ DROP TABLE t1; ...@@ -130,6 +132,8 @@ DROP TABLE t1;
# Case 2: wsrep_load_data_splitting = ON & LOAD DATA with 101 entries. # Case 2: wsrep_load_data_splitting = ON & LOAD DATA with 101 entries.
connection node_1; connection node_1;
SET GLOBAL wsrep_load_data_splitting = ON; SET GLOBAL wsrep_load_data_splitting = ON;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
connection node_2; connection node_2;
...@@ -143,6 +147,8 @@ DROP TABLE t1; ...@@ -143,6 +147,8 @@ DROP TABLE t1;
# entries. # entries.
connection node_1; connection node_1;
SET GLOBAL wsrep_load_data_splitting = OFF; SET GLOBAL wsrep_load_data_splitting = OFF;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
CREATE TABLE t1 (pk INT PRIMARY KEY) CREATE TABLE t1 (pk INT PRIMARY KEY)
ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2; ENGINE=INNODB PARTITION BY HASH(pk) PARTITIONS 2;
connection node_2; connection node_2;
...@@ -154,6 +160,8 @@ AS_EXPECTED_1_or_2 ...@@ -154,6 +160,8 @@ AS_EXPECTED_1_or_2
DROP TABLE t1; DROP TABLE t1;
connection node_1; connection node_1;
SET GLOBAL wsrep_load_data_splitting = 1;; SET GLOBAL wsrep_load_data_splitting = 1;;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
disconnect node_2; disconnect node_2;
disconnect node_1; disconnect node_1;
# End of test # End of test
...@@ -232,7 +232,7 @@ GLOBAL_VALUE_ORIGIN COMPILE-TIME ...@@ -232,7 +232,7 @@ GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE ON DEFAULT_VALUE ON
VARIABLE_SCOPE GLOBAL VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE BOOLEAN VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT To commit LOAD DATA transaction after every 10K rows inserted (deprecating) VARIABLE_COMMENT To commit LOAD DATA transaction after every 10K rows inserted (deprecated)
NUMERIC_MIN_VALUE NULL NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL NUMERIC_BLOCK_SIZE NULL
......
...@@ -12,24 +12,34 @@ SELECT @@global.wsrep_load_data_splitting; ...@@ -12,24 +12,34 @@ SELECT @@global.wsrep_load_data_splitting;
SELECT @@session.wsrep_load_data_splitting; SELECT @@session.wsrep_load_data_splitting;
ERROR HY000: Variable 'wsrep_load_data_splitting' is a GLOBAL variable ERROR HY000: Variable 'wsrep_load_data_splitting' is a GLOBAL variable
SET @@global.wsrep_load_data_splitting=OFF; SET @@global.wsrep_load_data_splitting=OFF;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SELECT @@global.wsrep_load_data_splitting; SELECT @@global.wsrep_load_data_splitting;
@@global.wsrep_load_data_splitting @@global.wsrep_load_data_splitting
0 0
SET @@global.wsrep_load_data_splitting=ON; SET @@global.wsrep_load_data_splitting=ON;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SELECT @@global.wsrep_load_data_splitting; SELECT @@global.wsrep_load_data_splitting;
@@global.wsrep_load_data_splitting @@global.wsrep_load_data_splitting
1 1
# valid values # valid values
SET @@global.wsrep_load_data_splitting='OFF'; SET @@global.wsrep_load_data_splitting='OFF';
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SELECT @@global.wsrep_load_data_splitting; SELECT @@global.wsrep_load_data_splitting;
@@global.wsrep_load_data_splitting @@global.wsrep_load_data_splitting
0 0
SET @@global.wsrep_load_data_splitting=ON; SET @@global.wsrep_load_data_splitting=ON;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SELECT @@global.wsrep_load_data_splitting; SELECT @@global.wsrep_load_data_splitting;
@@global.wsrep_load_data_splitting @@global.wsrep_load_data_splitting
1 1
SET @@global.wsrep_load_data_splitting=default; SET @@global.wsrep_load_data_splitting=default;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
SELECT @@global.wsrep_load_data_splitting; SELECT @@global.wsrep_load_data_splitting;
@@global.wsrep_load_data_splitting @@global.wsrep_load_data_splitting
1 1
...@@ -42,4 +52,6 @@ ERROR 42000: Variable 'wsrep_load_data_splitting' can't be set to the value of ' ...@@ -42,4 +52,6 @@ ERROR 42000: Variable 'wsrep_load_data_splitting' can't be set to the value of '
# restore the initial value # restore the initial value
SET @@global.wsrep_load_data_splitting = @wsrep_load_data_splitting_global_saved; SET @@global.wsrep_load_data_splitting = @wsrep_load_data_splitting_global_saved;
Warnings:
Warning 1287 '@@wsrep_load_data_splitting' is deprecated and will be removed in a future release
# End of test # End of test
...@@ -598,7 +598,7 @@ static Sys_var_mybool Sys_explicit_defaults_for_timestamp( ...@@ -598,7 +598,7 @@ static Sys_var_mybool Sys_explicit_defaults_for_timestamp(
"as NULL with DEFAULT NULL attribute, Without this option, " "as NULL with DEFAULT NULL attribute, Without this option, "
"TIMESTAMP columns are NOT NULL and have implicit DEFAULT clauses.", "TIMESTAMP columns are NOT NULL and have implicit DEFAULT clauses.",
READ_ONLY GLOBAL_VAR(opt_explicit_defaults_for_timestamp), READ_ONLY GLOBAL_VAR(opt_explicit_defaults_for_timestamp),
CMD_LINE(OPT_ARG), DEFAULT(FALSE), NO_MUTEX_GUARD, NOT_IN_BINLOG); CMD_LINE(OPT_ARG), DEFAULT(FALSE));
static Sys_var_ulonglong Sys_bulk_insert_buff_size( static Sys_var_ulonglong Sys_bulk_insert_buff_size(
...@@ -2156,7 +2156,7 @@ static Sys_var_bit Sys_skip_parallel_replication( ...@@ -2156,7 +2156,7 @@ static Sys_var_bit Sys_skip_parallel_replication(
"retry for transactions that are likely to cause a conflict if " "retry for transactions that are likely to cause a conflict if "
"replicated in parallel.", "replicated in parallel.",
SESSION_ONLY(option_bits), NO_CMD_LINE, OPTION_RPL_SKIP_PARALLEL, SESSION_ONLY(option_bits), NO_CMD_LINE, OPTION_RPL_SKIP_PARALLEL,
DEFAULT(FALSE), NO_MUTEX_GUARD, NOT_IN_BINLOG); DEFAULT(FALSE));
static bool static bool
...@@ -2252,7 +2252,9 @@ static Sys_var_ulong Sys_max_long_data_size( ...@@ -2252,7 +2252,9 @@ static Sys_var_ulong Sys_max_long_data_size(
READ_ONLY GLOBAL_VAR(max_long_data_size), READ_ONLY GLOBAL_VAR(max_long_data_size),
CMD_LINE(REQUIRED_ARG, OPT_MAX_LONG_DATA_SIZE), CMD_LINE(REQUIRED_ARG, OPT_MAX_LONG_DATA_SIZE),
VALID_RANGE(1024, UINT_MAX32), DEFAULT(1024*1024), VALID_RANGE(1024, UINT_MAX32), DEFAULT(1024*1024),
BLOCK_SIZE(1)); BLOCK_SIZE(1), NO_MUTEX_GUARD, NOT_IN_BINLOG,
ON_CHECK(0), ON_UPDATE(0),
DEPRECATED("'@@max_allowed_packet'"));
static PolyLock_mutex PLock_prepared_stmt_count(&LOCK_prepared_stmt_count); static PolyLock_mutex PLock_prepared_stmt_count(&LOCK_prepared_stmt_count);
static Sys_var_uint Sys_max_prepared_stmt_count( static Sys_var_uint Sys_max_prepared_stmt_count(
...@@ -2537,7 +2539,7 @@ static Sys_var_flagset Sys_optimizer_switch( ...@@ -2537,7 +2539,7 @@ static Sys_var_flagset Sys_optimizer_switch(
"Fine-tune the optimizer behavior", "Fine-tune the optimizer behavior",
SESSION_VAR(optimizer_switch), CMD_LINE(REQUIRED_ARG), SESSION_VAR(optimizer_switch), CMD_LINE(REQUIRED_ARG),
optimizer_switch_names, DEFAULT(OPTIMIZER_SWITCH_DEFAULT), optimizer_switch_names, DEFAULT(OPTIMIZER_SWITCH_DEFAULT),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
ON_UPDATE(fix_optimizer_switch)); ON_UPDATE(fix_optimizer_switch));
static Sys_var_charptr Sys_pid_file( static Sys_var_charptr Sys_pid_file(
...@@ -2891,7 +2893,7 @@ static Sys_var_ulong Sys_query_cache_limit( ...@@ -2891,7 +2893,7 @@ static Sys_var_ulong Sys_query_cache_limit(
"Don't cache results that are bigger than this", "Don't cache results that are bigger than this",
GLOBAL_VAR(query_cache_limit), CMD_LINE(REQUIRED_ARG), GLOBAL_VAR(query_cache_limit), CMD_LINE(REQUIRED_ARG),
VALID_RANGE(0, UINT_MAX), DEFAULT(1024*1024), BLOCK_SIZE(1), VALID_RANGE(0, UINT_MAX), DEFAULT(1024*1024), BLOCK_SIZE(1),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
ON_UPDATE(fix_query_cache_limit)); ON_UPDATE(fix_query_cache_limit));
static bool fix_qcache_min_res_unit(sys_var *self, THD *thd, enum_var_type type) static bool fix_qcache_min_res_unit(sys_var *self, THD *thd, enum_var_type type)
...@@ -3762,7 +3764,7 @@ static Sys_var_mybool Sys_timed_mutexes( ...@@ -3762,7 +3764,7 @@ static Sys_var_mybool Sys_timed_mutexes(
"timed_mutexes", "timed_mutexes",
"Specify whether to time mutexes. Deprecated, has no effect.", "Specify whether to time mutexes. Deprecated, has no effect.",
GLOBAL_VAR(timed_mutexes), CMD_LINE(OPT_ARG), DEFAULT(0), GLOBAL_VAR(timed_mutexes), CMD_LINE(OPT_ARG), DEFAULT(0),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), ON_UPDATE(NULL), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0), ON_UPDATE(0),
DEPRECATED("")); DEPRECATED(""));
static Sys_var_charptr Sys_version( static Sys_var_charptr Sys_version(
...@@ -5336,7 +5338,7 @@ static Sys_var_ulong Sys_wsrep_slave_threads( ...@@ -5336,7 +5338,7 @@ static Sys_var_ulong Sys_wsrep_slave_threads(
GLOBAL_VAR(wsrep_slave_threads), CMD_LINE(REQUIRED_ARG), GLOBAL_VAR(wsrep_slave_threads), CMD_LINE(REQUIRED_ARG),
VALID_RANGE(1, 512), DEFAULT(1), BLOCK_SIZE(1), VALID_RANGE(1, 512), DEFAULT(1), BLOCK_SIZE(1),
&PLock_wsrep_slave_threads, NOT_IN_BINLOG, &PLock_wsrep_slave_threads, NOT_IN_BINLOG,
ON_CHECK(NULL), ON_CHECK(0),
ON_UPDATE(wsrep_slave_threads_update)); ON_UPDATE(wsrep_slave_threads_update));
static Sys_var_charptr Sys_wsrep_dbug_option( static Sys_var_charptr Sys_wsrep_dbug_option(
...@@ -5518,9 +5520,10 @@ static Sys_var_ulong Sys_wsrep_mysql_replication_bundle( ...@@ -5518,9 +5520,10 @@ static Sys_var_ulong Sys_wsrep_mysql_replication_bundle(
static Sys_var_mybool Sys_wsrep_load_data_splitting( static Sys_var_mybool Sys_wsrep_load_data_splitting(
"wsrep_load_data_splitting", "To commit LOAD DATA " "wsrep_load_data_splitting", "To commit LOAD DATA "
"transaction after every 10K rows inserted (deprecating)", "transaction after every 10K rows inserted (deprecated)",
GLOBAL_VAR(wsrep_load_data_splitting), GLOBAL_VAR(wsrep_load_data_splitting),
CMD_LINE(OPT_ARG), DEFAULT(TRUE)); CMD_LINE(OPT_ARG), DEFAULT(TRUE), NO_MUTEX_GUARD, NOT_IN_BINLOG,
ON_CHECK(0), ON_UPDATE(0), DEPRECATED(""));
static Sys_var_mybool Sys_wsrep_slave_FK_checks( static Sys_var_mybool Sys_wsrep_slave_FK_checks(
"wsrep_slave_FK_checks", "Should slave thread do " "wsrep_slave_FK_checks", "Should slave thread do "
...@@ -5565,14 +5568,13 @@ extern const char *wsrep_SR_store_types[]; ...@@ -5565,14 +5568,13 @@ extern const char *wsrep_SR_store_types[];
static Sys_var_enum Sys_wsrep_SR_store( static Sys_var_enum Sys_wsrep_SR_store(
"wsrep_SR_store", "Storage for streaming replication fragments", "wsrep_SR_store", "Storage for streaming replication fragments",
READ_ONLY GLOBAL_VAR(wsrep_SR_store_type), CMD_LINE(REQUIRED_ARG), READ_ONLY GLOBAL_VAR(wsrep_SR_store_type), CMD_LINE(REQUIRED_ARG),
wsrep_SR_store_types, DEFAULT(WSREP_SR_STORE_TABLE), wsrep_SR_store_types, DEFAULT(WSREP_SR_STORE_TABLE));
NO_MUTEX_GUARD, NOT_IN_BINLOG);
static Sys_var_mybool Sys_wsrep_dirty_reads( static Sys_var_mybool Sys_wsrep_dirty_reads(
"wsrep_dirty_reads", "wsrep_dirty_reads",
"Allow reads even when the node is not in the primary component.", "Allow reads even when the node is not in the primary component.",
SESSION_VAR(wsrep_dirty_reads), CMD_LINE(OPT_ARG), SESSION_VAR(wsrep_dirty_reads), CMD_LINE(OPT_ARG),
DEFAULT(FALSE), NO_MUTEX_GUARD, NOT_IN_BINLOG); DEFAULT(FALSE));
static Sys_var_uint Sys_wsrep_ignore_apply_errors ( static Sys_var_uint Sys_wsrep_ignore_apply_errors (
"wsrep_ignore_apply_errors", "Ignore replication errors", "wsrep_ignore_apply_errors", "Ignore replication errors",
...@@ -5585,8 +5587,7 @@ static Sys_var_uint Sys_wsrep_gtid_domain_id( ...@@ -5585,8 +5587,7 @@ static Sys_var_uint Sys_wsrep_gtid_domain_id(
"used as gtid_domain_id for galera transactions and also copied to the " "used as gtid_domain_id for galera transactions and also copied to the "
"joiner nodes during state transfer. It is ignored, otherwise.", "joiner nodes during state transfer. It is ignored, otherwise.",
GLOBAL_VAR(wsrep_gtid_domain_id), CMD_LINE(REQUIRED_ARG), GLOBAL_VAR(wsrep_gtid_domain_id), CMD_LINE(REQUIRED_ARG),
VALID_RANGE(0, UINT_MAX32), DEFAULT(0), BLOCK_SIZE(1), NO_MUTEX_GUARD, VALID_RANGE(0, UINT_MAX32), DEFAULT(0), BLOCK_SIZE(1));
NOT_IN_BINLOG);
static Sys_var_mybool Sys_wsrep_gtid_mode( static Sys_var_mybool Sys_wsrep_gtid_mode(
"wsrep_gtid_mode", "Automatically update the (joiner) node's " "wsrep_gtid_mode", "Automatically update the (joiner) node's "
...@@ -5617,7 +5618,7 @@ static Sys_var_ulong Sys_host_cache_size( ...@@ -5617,7 +5618,7 @@ static Sys_var_ulong Sys_host_cache_size(
CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, 65536), CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, 65536),
DEFAULT(HOST_CACHE_SIZE), DEFAULT(HOST_CACHE_SIZE),
BLOCK_SIZE(1), BLOCK_SIZE(1),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
ON_UPDATE(fix_host_cache_size)); ON_UPDATE(fix_host_cache_size));
vio_keepalive_opts opt_vio_keepalive; vio_keepalive_opts opt_vio_keepalive;
...@@ -5627,30 +5628,24 @@ static Sys_var_int Sys_keepalive_time( ...@@ -5627,30 +5628,24 @@ static Sys_var_int Sys_keepalive_time(
"Timeout, in milliseconds, with no activity until the first TCP keep-alive packet is sent." "Timeout, in milliseconds, with no activity until the first TCP keep-alive packet is sent."
"If set to 0, system dependent default is used.", "If set to 0, system dependent default is used.",
AUTO_SET GLOBAL_VAR(opt_vio_keepalive.idle), AUTO_SET GLOBAL_VAR(opt_vio_keepalive.idle),
CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), DEFAULT(0),
DEFAULT(0), BLOCK_SIZE(1));
BLOCK_SIZE(1),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL));
static Sys_var_int Sys_keepalive_interval( static Sys_var_int Sys_keepalive_interval(
"tcp_keepalive_interval", "tcp_keepalive_interval",
"The interval, in seconds, between when successive keep-alive packets are sent if no acknowledgement is received." "The interval, in seconds, between when successive keep-alive packets are sent if no acknowledgement is received."
"If set to 0, system dependent default is used.", "If set to 0, system dependent default is used.",
AUTO_SET GLOBAL_VAR(opt_vio_keepalive.interval), AUTO_SET GLOBAL_VAR(opt_vio_keepalive.interval),
CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), DEFAULT(0),
DEFAULT(0), BLOCK_SIZE(1));
BLOCK_SIZE(1),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL));
static Sys_var_int Sys_keepalive_probes( static Sys_var_int Sys_keepalive_probes(
"tcp_keepalive_probes", "tcp_keepalive_probes",
"The number of unacknowledged probes to send before considering the connection dead and notifying the application layer." "The number of unacknowledged probes to send before considering the connection dead and notifying the application layer."
"If set to 0, system dependent default is used.", "If set to 0, system dependent default is used.",
AUTO_SET GLOBAL_VAR(opt_vio_keepalive.probes), AUTO_SET GLOBAL_VAR(opt_vio_keepalive.probes),
CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), CMD_LINE(REQUIRED_ARG), VALID_RANGE(0, INT_MAX32/1000), DEFAULT(0),
DEFAULT(0), BLOCK_SIZE(1));
BLOCK_SIZE(1),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL));
static bool update_tcp_nodelay(sys_var *self, THD *thd, static bool update_tcp_nodelay(sys_var *self, THD *thd,
...@@ -6062,14 +6057,14 @@ static Sys_var_mybool Sys_mysql56_temporal_format( ...@@ -6062,14 +6057,14 @@ static Sys_var_mybool Sys_mysql56_temporal_format(
"mysql56_temporal_format", "mysql56_temporal_format",
"Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME, DATETIME, TIMESTAMP columns.", "Use MySQL-5.6 (instead of MariaDB-5.3) format for TIME, DATETIME, TIMESTAMP columns.",
GLOBAL_VAR(opt_mysql56_temporal_format), GLOBAL_VAR(opt_mysql56_temporal_format),
CMD_LINE(OPT_ARG), DEFAULT(TRUE), NO_MUTEX_GUARD, NOT_IN_BINLOG); CMD_LINE(OPT_ARG), DEFAULT(TRUE));
static Sys_var_mybool Sys_strict_password_validation( static Sys_var_mybool Sys_strict_password_validation(
"strict_password_validation", "strict_password_validation",
"When password validation plugins are enabled, reject passwords " "When password validation plugins are enabled, reject passwords "
"that cannot be validated (passwords specified as a hash)", "that cannot be validated (passwords specified as a hash)",
GLOBAL_VAR(strict_password_validation), GLOBAL_VAR(strict_password_validation),
CMD_LINE(OPT_ARG), DEFAULT(TRUE), NO_MUTEX_GUARD, NOT_IN_BINLOG); CMD_LINE(OPT_ARG), DEFAULT(TRUE));
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
static Sys_var_ulong Sys_log_tc_size( static Sys_var_ulong Sys_log_tc_size(
...@@ -6096,8 +6091,7 @@ static Sys_var_sesvartrack Sys_track_session_sys_vars( ...@@ -6096,8 +6091,7 @@ static Sys_var_sesvartrack Sys_track_session_sys_vars(
"Track changes in registered system variables. ", "Track changes in registered system variables. ",
CMD_LINE(REQUIRED_ARG), IN_SYSTEM_CHARSET, CMD_LINE(REQUIRED_ARG), IN_SYSTEM_CHARSET,
DEFAULT("autocommit,character_set_client,character_set_connection," DEFAULT("autocommit,character_set_client,character_set_connection,"
"character_set_results,time_zone"), "character_set_results,time_zone"));
NO_MUTEX_GUARD);
static bool update_session_track_schema(sys_var *self, THD *thd, static bool update_session_track_schema(sys_var *self, THD *thd,
enum_var_type type) enum_var_type type)
......
...@@ -596,7 +596,7 @@ public: ...@@ -596,7 +596,7 @@ public:
const char *comment, const char *comment,
CMD_LINE getopt, CMD_LINE getopt,
enum charset_enum is_os_charset_arg, enum charset_enum is_os_charset_arg,
const char *def_val, PolyLock *lock) : const char *def_val, PolyLock *lock= 0) :
Sys_var_charptr_base(name_arg, comment, Sys_var_charptr_base(name_arg, comment,
SESSION_VAR(session_track_system_variables), SESSION_VAR(session_track_system_variables),
getopt, is_os_charset_arg, def_val, lock, getopt, is_os_charset_arg, def_val, lock,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment