mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
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 2b35db5ac4
This commit is contained in:
parent
776fc87686
commit
c22ab56f0d
1 changed files with 2 additions and 3 deletions
|
@ -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%%/*}
|
||||
|
|
Loading…
Reference in a new issue