diff options
author | Seppo Jaakola <seppo.jaakola@codership.com> | 2012-11-28 17:38:32 +0200 |
---|---|---|
committer | Seppo Jaakola <seppo.jaakola@codership.com> | 2012-11-28 17:38:32 +0200 |
commit | fc6cd855e9dd1b89a45f6584b3bd21ddc1f60607 (patch) | |
tree | 2a377ec91affec1a730a51231408af2a50a7bb51 /scripts/wsrep_sst_xtrabackup.sh | |
parent | 9b47a442b5452cb6c541e312f78746e7739e9f42 (diff) | |
download | mariadb-git-fc6cd855e9dd1b89a45f6584b3bd21ddc1f60607.tar.gz |
References: lp:1066784 - Merged revisions 3810-3827 from lp:codership-mysql
Diffstat (limited to 'scripts/wsrep_sst_xtrabackup.sh')
-rw-r--r-- | scripts/wsrep_sst_xtrabackup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/wsrep_sst_xtrabackup.sh b/scripts/wsrep_sst_xtrabackup.sh index dd8532d6485..08552f50a44 100644 --- a/scripts/wsrep_sst_xtrabackup.sh +++ b/scripts/wsrep_sst_xtrabackup.sh @@ -34,8 +34,8 @@ cleanup_joiner() check_pid() { - local pid_file=$1 - [ -r $pid_file ] && ps -p $(cat $pid_file) >/dev/null 2>&1 + local pid_file="$1" + [ -r "$pid_file" ] && ps -p $(cat "$pid_file") >/dev/null 2>&1 } kill_xtrabackup() @@ -133,14 +133,14 @@ then exit 22 fi - if check_pid ${XTRABACKUP_PID} + if check_pid "${XTRABACKUP_PID}" then wsrep_log_error "xtrabackup process is still running. Killing... " kill_xtrabackup exit 22 fi - rm -f ${XTRABACKUP_PID} + rm -f "${XTRABACKUP_PID}" else # BYPASS STATE="${WSREP_SST_OPT_GTID}" |