summaryrefslogtreecommitdiff
path: root/scripts/wsrep_sst_xtrabackup.sh
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2016-01-11 22:43:27 +0200
committerNirbhay Choubey <nirbhay@mariadb.com>2016-08-21 16:16:58 -0400
commit58386ca04dffd5fc9006d8f70a44a3a82f385b96 (patch)
treec1a90b8f6045a2ded39de22507b0b1e445fa9b31 /scripts/wsrep_sst_xtrabackup.sh
parent9f211d49562da522c8b1dec35ff871fa20f5d89f (diff)
downloadmariadb-git-58386ca04dffd5fc9006d8f70a44a3a82f385b96.tar.gz
refs codership/mysql-wsrep#239
Synced xtrabackup SST scripts from PXC source tree as of PXC 5.6.27-25.13 - PXC#480: xtrabackup-v2 SST fails with multiple log_bin directives in my.cn - PXC#460: wsrep_sst_auth don't work in Percona-XtraDB-Cluster-56-5.6.25-25. - PXC-416: Fix SST related issues. - PXC-389: Merge remote-tracking branch 'wsrep/5.6' into 5.6-wsrep-pxc389 - Bug #1431101: SST does not clobber backup-my.cnf
Diffstat (limited to 'scripts/wsrep_sst_xtrabackup.sh')
-rw-r--r--scripts/wsrep_sst_xtrabackup.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/wsrep_sst_xtrabackup.sh b/scripts/wsrep_sst_xtrabackup.sh
index 4acf2854301..b40be208be7 100644
--- a/scripts/wsrep_sst_xtrabackup.sh
+++ b/scripts/wsrep_sst_xtrabackup.sh
@@ -436,15 +436,17 @@ then
if [ $WSREP_SST_OPT_BYPASS -eq 0 ]
then
+ usrst=0
TMPDIR="${TMPDIR:-/tmp}"
- if [ "$WSREP_SST_OPT_USER" != "(null)" ]; then
+ if [[ -n "${WSREP_SST_OPT_USER:-}" && "$WSREP_SST_OPT_USER" != "(null)" ]]; then
INNOEXTRA+=" --user=$WSREP_SST_OPT_USER"
+ usrst=1
fi
if [ -n "${WSREP_SST_OPT_PSWD:-}" ]; then
INNOEXTRA+=" --password=$WSREP_SST_OPT_PSWD"
- else
+ elif [[ $usrst -eq 1 ]];then
# Empty password, used for testing, debugging etc.
INNOEXTRA+=" --password="
fi