Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
77a8ae07
Commit
77a8ae07
authored
Jul 30, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup around wsrep system variables.
parent
355bf4fb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
58 deletions
+54
-58
sql/wsrep_check_opts.cc
sql/wsrep_check_opts.cc
+0
-2
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+52
-37
sql/wsrep_notify.cc
sql/wsrep_notify.cc
+0
-1
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+0
-6
sql/wsrep_sst.h
sql/wsrep_sst.h
+2
-2
sql/wsrep_var.cc
sql/wsrep_var.cc
+0
-10
No files found.
sql/wsrep_check_opts.cc
View file @
77a8ae07
...
...
@@ -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
;
...
...
sql/wsrep_mysqld.cc
View file @
77a8ae07
...
...
@@ -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
...
...
sql/wsrep_notify.cc
View file @
77a8ae07
...
...
@@ -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
)
{
...
...
sql/wsrep_sst.cc
View file @
77a8ae07
...
...
@@ -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
)
{
...
...
sql/wsrep_sst.h
View file @
77a8ae07
...
...
@@ -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
();
...
...
sql/wsrep_var.cc
View file @
77a8ae07
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment