diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2018-06-26 12:56:19 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2018-09-05 10:34:36 +0300 |
commit | b44b9f71bd86076746d21babb17949c1a710343c (patch) | |
tree | 8846d0871149780773d07fe0f8f59393e02e4132 /sql/wsrep_sst.h | |
parent | 4caf3e08a853e413b4a08c1bf93cf737266a1451 (diff) | |
download | mariadb-git-b44b9f71bd86076746d21babb17949c1a710343c.tar.gz |
MDEV-15436: If log_bin and log_bin_index is different SST with rsync fails.
Problem was that in SST log_bin_index name and directory was not
handled and passed to rsync SST script.
wsrep_sst_common.sh
Read binlog index dirname and filename if --binlog-index
parameter is provided. Read binlog filenames from that file
from donor and write transfered binlog filenames to that
file in joiner.
mysqld.cc, mysqld.h
Moved opt_binlog_index_name from static to global and added
it to extern.
wsrep_sst.cc
generate_binlog_index_opt_val
New function to generate binlog index name if opt_binlog_index_name is
given on configuration.
sst_prepare_other
Add binlog index configuration to SST command.
wsrep_sst.h
Add new SST parameter --binlog-index
Add test case.
Diffstat (limited to 'sql/wsrep_sst.h')
-rw-r--r-- | sql/wsrep_sst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/wsrep_sst.h b/sql/wsrep_sst.h index dcf0ff22651..a35ce46cae8 100644 --- a/sql/wsrep_sst.h +++ b/sql/wsrep_sst.h @@ -31,6 +31,7 @@ #define WSREP_SST_OPT_CONF_EXTRA "--defaults-extra-file" #define WSREP_SST_OPT_PARENT "--parent" #define WSREP_SST_OPT_BINLOG "--binlog" +#define WSREP_SST_OPT_BINLOG_INDEX "--binlog-index" // mysqldump-specific options #define WSREP_SST_OPT_USER "--user" |