summaryrefslogtreecommitdiff
path: root/scripts/wsrep_sst_xtrabackup.sh
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.vnet.ibm.com>2018-01-16 14:44:27 +1100
committerDaniel Black <daniel@linux.vnet.ibm.com>2018-01-16 14:44:39 +1100
commitc4b7074e72e3211045f71db0617c4ba10bb653e6 (patch)
treeab8fdcbfe483a51f560cb22dc14221ec5350aeed /scripts/wsrep_sst_xtrabackup.sh
parent3f27fa379744361e26f06272760c2094429974ac (diff)
downloadmariadb-git-c4b7074e72e3211045f71db0617c4ba10bb653e6.tar.gz
wsrep_sst_xtrabackup*: use mysqld defaults arguments
It was assumed in https://bugs.launchpad.net/codership-mysql/+bug/1378355 that xtrabackup didn't have the groups-defaults-suffix because it wasn't listed in the help output. Also --defaults-group was always just an additional group despite the misleading description implying it was a replacement. So actually we can use the default* mysqld arguements to xtrabackup as the standard mysqld configuration parser was used.
Diffstat (limited to 'scripts/wsrep_sst_xtrabackup.sh')
-rw-r--r--scripts/wsrep_sst_xtrabackup.sh13
1 files changed, 3 insertions, 10 deletions
diff --git a/scripts/wsrep_sst_xtrabackup.sh b/scripts/wsrep_sst_xtrabackup.sh
index 0f8662eed24..75aedb7ae63 100644
--- a/scripts/wsrep_sst_xtrabackup.sh
+++ b/scripts/wsrep_sst_xtrabackup.sh
@@ -398,16 +398,9 @@ setup_ports
get_stream
get_transfer
-# This is as close as innobackupex gets to mysqld defaults. Important note --defaults-extra-file passed to
-# mysqld is not passed to innobackupex.
-# WSREP_SST_OPT_SUFFIX_DEFAULT goes from --defaults-group-suffix=.X to --defaults-group=mysqld.X
-# Ref: https://bugs.launchpad.net/codership-mysql/+bug/1378355
-
-readonly INNOBACKUP_OPT_DEFAULT="${$WSREP_SST_OPT_DEFAULT} ${WSREP_SST_OPT_SUFFIX_DEFAULT/-suffix=/=mysqld}"
-
INNOEXTRA=""
-INNOAPPLY="${INNOBACKUPEX_BIN} ${INNOBACKUP_OPT_DEFAULT} --apply-log \$rebuildcmd \${DATA} &>\${DATA}/innobackup.prepare.log"
-INNOBACKUP="${INNOBACKUPEX_BIN} ${INNOBACKUP_OPT_DEFAULT} \$INNOEXTRA --galera-info --stream=\$sfmt \${TMPDIR} 2>\${DATA}/innobackup.backup.log"
+INNOAPPLY="${INNOBACKUPEX_BIN} ${WSREP_SST_OPT_CONF} --apply-log \$rebuildcmd \${DATA} &>\${DATA}/innobackup.prepare.log"
+INNOBACKUP="${INNOBACKUPEX_BIN} ${WSREP_SST_OPT_CONF} \$INNOEXTRA --galera-info --stream=\$sfmt \${TMPDIR} 2>\${DATA}/innobackup.backup.log"
if [ "$WSREP_SST_OPT_ROLE" = "donor" ]
then
@@ -660,7 +653,7 @@ then
if [[ $incremental -eq 1 ]];then
# Added --ibbackup=xtrabackup_55 because it fails otherwise citing connection issues.
- INNOAPPLY="${INNOBACKUPEX_BIN} ${INNOBACKUP_OPT_DEFAULT} \
+ INNOAPPLY="${INNOBACKUPEX_BIN} ${WSREP_SST_OPT_CONF} \
--ibbackup=xtrabackup_55 --apply-log $rebuildcmd --redo-only $BDATA --incremental-dir=${DATA} &>>${BDATA}/innobackup.prepare.log"
fi