diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-07-30 14:40:47 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2016-07-30 14:40:47 -0400 |
commit | 77a8ae07a917195086fec52a9cf0ca463f4f8777 (patch) | |
tree | 54ed93253c2ab0dd021c804a400fe5fbb285ac30 /sql | |
parent | 355bf4fbb52123dc1c81d88c31844cdd1ea4f824 (diff) | |
download | mariadb-git-77a8ae07a917195086fec52a9cf0ca463f4f8777.tar.gz |
Cleanup around wsrep system variables.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/wsrep_check_opts.cc | 2 | ||||
-rw-r--r-- | sql/wsrep_mysqld.cc | 89 | ||||
-rw-r--r-- | sql/wsrep_notify.cc | 1 | ||||
-rw-r--r-- | sql/wsrep_sst.cc | 6 | ||||
-rw-r--r-- | sql/wsrep_sst.h | 4 | ||||
-rw-r--r-- | sql/wsrep_var.cc | 10 |
6 files changed, 54 insertions, 58 deletions
diff --git a/sql/wsrep_check_opts.cc b/sql/wsrep_check_opts.cc index 818ef843cb5..bc77c434525 100644 --- a/sql/wsrep_check_opts.cc +++ b/sql/wsrep_check_opts.cc @@ -18,8 +18,6 @@ #include "sys_vars_shared.h" #include "wsrep.h" #include "wsrep_sst.h" -//#include <sql_class.h> -//#include "wsrep_mysqld.h" extern char *my_bind_addr_str; diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc index c00c7bf82db..de050c6470e 100644 --- a/sql/wsrep_mysqld.cc +++ b/sql/wsrep_mysqld.cc @@ -52,49 +52,64 @@ rpl_sidno wsrep_sidno= -1; my_bool wsrep_preordered_opt= FALSE; /* - * Begin configuration options and their default values + * Begin configuration options */ extern my_bool plugins_are_initialized; extern uint kill_cached_threads; extern mysql_cond_t COND_thread_cache; -const char* wsrep_data_home_dir = NULL; -const char* wsrep_dbug_option = ""; - -long wsrep_slave_threads = 1; // # of slave action appliers wanted -int wsrep_slave_count_change = 0; // # of appliers to stop or start -my_bool wsrep_debug = 0; // enable debug level logging -my_bool wsrep_convert_LOCK_to_trx = 1; // convert locking sessions to trx -ulong wsrep_retry_autocommit = 5; // retry aborted autocommit trx -my_bool wsrep_auto_increment_control = 1; // control auto increment variables -my_bool wsrep_drupal_282555_workaround = 1; // retry autoinc insert after dupkey -my_bool wsrep_incremental_data_collection = 0; // incremental data collection -ulong wsrep_max_ws_size = 1073741824UL;//max ws (RBR buffer) size -ulong wsrep_max_ws_rows = 65536; // max number of rows in ws -int wsrep_to_isolation = 0; // # of active TO isolation threads -my_bool wsrep_certify_nonPK = 1; // certify, even when no primary key -long wsrep_max_protocol_version = 3; // maximum protocol version to use -ulong wsrep_forced_binlog_format = BINLOG_FORMAT_UNSPEC; -my_bool wsrep_recovery = 0; // recovery -my_bool wsrep_replicate_myisam = 0; // enable myisam replication -my_bool wsrep_log_conflicts = 0; -ulong wsrep_mysql_replication_bundle = 0; -my_bool wsrep_desync = 0; // desynchronize the node from the - // cluster -my_bool wsrep_load_data_splitting = 1; // commit load data every 10K intervals -my_bool wsrep_restart_slave = 0; // should mysql slave thread be - // restarted, if node joins back -my_bool wsrep_restart_slave_activated = 0; // node has dropped, and slave - // restart will be needed -my_bool wsrep_slave_UK_checks = 0; // slave thread does UK checks -my_bool wsrep_slave_FK_checks = 0; // slave thread does FK checks -bool wsrep_new_cluster = false; // Bootstrap the cluster ? - -// Use wsrep_gtid_domain_id for galera transactions? -bool wsrep_gtid_mode = 0; -// gtid_domain_id for galera transactions. -uint32 wsrep_gtid_domain_id = 0; +/* System variables. */ +const char *wsrep_provider; +const char *wsrep_provider_options; +const char *wsrep_cluster_address; +const char *wsrep_cluster_name; +const char *wsrep_node_name; +const char *wsrep_node_address; +const char *wsrep_node_incoming_address; +const char *wsrep_start_position; +const char *wsrep_data_home_dir; +const char *wsrep_dbug_option; +const char *wsrep_notify_cmd; +const char *wsrep_sst_method; +const char *wsrep_sst_receive_address; +const char *wsrep_sst_donor; +const char *wsrep_sst_auth; +my_bool wsrep_debug; // Enable debug level logging +my_bool wsrep_convert_LOCK_to_trx; // Convert locking sessions to trx +my_bool wsrep_auto_increment_control; // Control auto increment variables +my_bool wsrep_drupal_282555_workaround; // Retry autoinc insert after dupkey +my_bool wsrep_certify_nonPK; // Certify, even when no primary key +my_bool wsrep_recovery; // Recovery +my_bool wsrep_replicate_myisam; // Enable MyISAM replication +my_bool wsrep_log_conflicts; +my_bool wsrep_load_data_splitting; // Commit load data every 10K intervals +my_bool wsrep_slave_UK_checks; // Slave thread does UK checks +my_bool wsrep_slave_FK_checks; // Slave thread does FK checks +my_bool wsrep_sst_donor_rejects_queries; +my_bool wsrep_restart_slave; // Should mysql slave thread be + // restarted, when node joins back? +my_bool wsrep_desync; // De(re)synchronize the node from the + // cluster +long wsrep_slave_threads; // No. of slave appliers threads +ulong wsrep_retry_autocommit; // Retry aborted autocommit trx +ulong wsrep_max_ws_size; // Max allowed ws (RBR buffer) size +ulong wsrep_max_ws_rows; // Max number of rows in ws +ulong wsrep_forced_binlog_format; +ulong wsrep_mysql_replication_bundle; +bool wsrep_gtid_mode; // Use wsrep_gtid_domain_id + // for galera transactions? +uint32 wsrep_gtid_domain_id; // gtid_domain_id for galera + // transactions + +/* Other configuration variables and their default values. */ +my_bool wsrep_incremental_data_collection= 0; // Incremental data collection +my_bool wsrep_restart_slave_activated= 0; // Node has dropped, and slave + // restart will be needed +bool wsrep_new_cluster= false; // Bootstrap the cluster? +int wsrep_slave_count_change= 0; // No. of appliers to stop/start +int wsrep_to_isolation= 0; // No. of active TO isolation threads +long wsrep_max_protocol_version= 3; // Maximum protocol version to use /* * End configuration options diff --git a/sql/wsrep_notify.cc b/sql/wsrep_notify.cc index e7d30d5a9c1..d1beb9c38d6 100644 --- a/sql/wsrep_notify.cc +++ b/sql/wsrep_notify.cc @@ -17,7 +17,6 @@ #include "wsrep_priv.h" #include "wsrep_utils.h" -const char* wsrep_notify_cmd=""; static const char* _status_str(wsrep_member_status_t status) { diff --git a/sql/wsrep_sst.cc b/sql/wsrep_sst.cc index 6d0cfc1c43a..2b682a1aded 100644 --- a/sql/wsrep_sst.cc +++ b/sql/wsrep_sst.cc @@ -34,14 +34,8 @@ char wsrep_defaults_file[FN_REFLEN * 2 + 10 + sizeof(WSREP_SST_OPT_CONF) + sizeof(WSREP_SST_OPT_EXTRA_CONF)] = {0}; -const char* wsrep_sst_method = WSREP_SST_DEFAULT; -const char* wsrep_sst_receive_address = WSREP_SST_ADDRESS_AUTO; -const char* wsrep_sst_donor = ""; - char* wsrep_sst_auth = NULL; - // container for real auth string static const char* sst_auth_real = NULL; -my_bool wsrep_sst_donor_rejects_queries = FALSE; bool wsrep_sst_method_check (sys_var *self, THD* thd, set_var* var) { diff --git a/sql/wsrep_sst.h b/sql/wsrep_sst.h index 512da060599..50a16100128 100644 --- a/sql/wsrep_sst.h +++ b/sql/wsrep_sst.h @@ -55,8 +55,8 @@ extern const char* wsrep_sst_method; extern const char* wsrep_sst_receive_address; extern const char* wsrep_sst_donor; -extern char* wsrep_sst_auth; -extern my_bool wsrep_sst_donor_rejects_queries; +extern const char* wsrep_sst_auth; +extern my_bool wsrep_sst_donor_rejects_queries; /*! Synchronizes applier thread start with init thread */ extern void wsrep_sst_grab(); diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc index 8e443b573cb..f5e236d3d4e 100644 --- a/sql/wsrep_var.cc +++ b/sql/wsrep_var.cc @@ -26,14 +26,6 @@ #include <cstdio> #include <cstdlib> -const char* wsrep_provider = 0; -const char* wsrep_provider_options = 0; -const char* wsrep_cluster_address = 0; -const char* wsrep_cluster_name = 0; -const char* wsrep_node_name = 0; -const char* wsrep_node_address = 0; -const char* wsrep_node_incoming_address = 0; -const char* wsrep_start_position = 0; int wsrep_init_vars() { @@ -45,8 +37,6 @@ int wsrep_init_vars() wsrep_node_address = my_strdup("", MYF(MY_WME)); wsrep_node_incoming_address= my_strdup(WSREP_NODE_INCOMING_AUTO, MYF(MY_WME)); wsrep_start_position = my_strdup(WSREP_START_POSITION_ZERO, MYF(MY_WME)); - - global_system_variables.binlog_format=BINLOG_FORMAT_ROW; return 0; } |