Skip to content

Commit

Permalink
MDEV-13968 sst fails with "WSREP_SST_OPT_PORT: readonly variable"
Browse files Browse the repository at this point in the history
followup for 990c431

fix broken script (set -u)
  • Loading branch information
vuvova authored and Jan Lindström committed May 14, 2018
1 parent e6b31df commit fe3c4a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/wsrep_sst_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ done
readonly WSREP_SST_OPT_BYPASS
readonly WSREP_SST_OPT_BINLOG

if [ -n "$WSREP_SST_OPT_ADDR_PORT" ]; then
if [ -n "$WSREP_SST_OPT_PORT" ]; then
if [ -n "${WSREP_SST_OPT_ADDR_PORT:-}" ]; then
if [ -n "${WSREP_SST_OPT_PORT:-}" ]; then
if [ "$WSREP_SST_OPT_PORT" != "$WSREP_SST_OPT_ADDR_PORT" ]; then
wsrep_log_error "port in --port=$WSREP_SST_OPT_PORT differs from port in --address=$WSREP_SST_OPT_ADDR"
exit 2
Expand Down

0 comments on commit fe3c4a4

Please sign in to comment.