Commit ec457c08 authored by Jan Lindström's avatar Jan Lindström Committed by GitHub

Merge pull request #865 from grooverdan/MDEV-17173-wsrep_sst

MDEV-17173: correct parsing of 12.13.14.15:4444/xtrabackup_sst leavin…
parents 6c7910ee b96d3634
...@@ -57,9 +57,18 @@ case "$1" in ...@@ -57,9 +57,18 @@ case "$1" in
readonly WSREP_SST_OPT_MODULE=${remain%%/*} readonly WSREP_SST_OPT_MODULE=${remain%%/*}
readonly WSREP_SST_OPT_PATH=${WSREP_SST_OPT_ADDR#*/} readonly WSREP_SST_OPT_PATH=${WSREP_SST_OPT_ADDR#*/}
remain=${WSREP_SST_OPT_PATH#*/} remain=${WSREP_SST_OPT_PATH#*/}
readonly WSREP_SST_OPT_LSN=${remain%%/*} if [ "$remain" != "${WSREP_SST_OPT_PATH}" ]; then
remain=${remain#*/} readonly WSREP_SST_OPT_LSN=${remain%%/*}
readonly WSREP_SST_OPT_SST_VER=${remain%%/*} remain=${remain#*/}
if [ "$remain" != "${WSREP_SST_OPT_LSN}" ]; then
readonly WSREP_SST_OPT_SST_VER=${remain%%/*}
else
readonly WSREP_SST_OPT_SST_VER=""
fi
else
readonly WSREP_SST_OPT_LSN=""
readonly WSREP_SST_OPT_SST_VER=""
fi
shift shift
;; ;;
'--bypass') '--bypass')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment