summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-06-14 15:12:13 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2018-06-15 14:28:08 +0300
commitcf648afd5b336ea61eacb3d0c0e52e0777d12c16 (patch)
tree862eac01a16e73cfa4eb1dc3dd00c332f360dde7 /scripts
parent215d652c66474c4578b0476385d055e7feae2d3a (diff)
downloadmariadb-git-cf648afd5b336ea61eacb3d0c0e52e0777d12c16.tar.gz
fix galera sst tests
note that ${A#foo} is $A if there's no prefix foo. That's why galera nodes tried to connect to 127.0.0.1:127.0.0.1 if there was no port in the address Followup for 2b35db5ac4e
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_common.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/wsrep_sst_common.sh b/scripts/wsrep_sst_common.sh
index d20e3bc36c9..1f57f3ebbc2 100644
--- a/scripts/wsrep_sst_common.sh
+++ b/scripts/wsrep_sst_common.sh
@@ -41,15 +41,14 @@ case "$1" in
addr_no_bracket=${WSREP_SST_OPT_ADDR#\[}
readonly WSREP_SST_OPT_HOST_UNESCAPED=${addr_no_bracket%%\]*}
readonly WSREP_SST_OPT_HOST="[${WSREP_SST_OPT_HOST_UNESCAPED}]"
- remain=${WSREP_SST_OPT_ADDR#*\]}
- remain=${remain#*:}
;;
*)
readonly WSREP_SST_OPT_HOST=${WSREP_SST_OPT_ADDR%%[:/]*}
readonly WSREP_SST_OPT_HOST_UNESCAPED=$WSREP_SST_OPT_HOST
- remain=${WSREP_SST_OPT_ADDR#*:}
;;
esac
+ remain=${WSREP_SST_OPT_ADDR#${WSREP_SST_OPT_HOST}}
+ remain=${remain#:}
readonly WSREP_SST_OPT_ADDR_PORT=${remain%%/*}
remain=${remain#*/}
readonly WSREP_SST_OPT_MODULE=${remain%%/*}