Skip to content

Commit

Permalink
Fix WSREP: xtrabackup SST method requires wsrep_cluster_address to be…
Browse files Browse the repository at this point in the history
… configured on startup.
  • Loading branch information
colinmollenhour committed Feb 8, 2017
1 parent 37f004e commit da94230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mysqld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function prepare_bootstrap {
if [[ -n $POSITION ]]; then
START="--wsrep_start_position=$POSITION $START"
fi
OPT=$(<<<$OPT sed 's#--wsrep_cluster_address=gcomm://[0-9,.]*##')
OPT=$(<<<$OPT sed 's#\(--wsrep_cluster_address=gcomm://\)[0-9,.]*#\1#')
if [[ -f /var/lib/mysql/grastate.dat ]]; then
sed -i -e 's/^safe_to_bootstrap: *0/safe_to_bootstrap: 1/' /var/lib/mysql/grastate.dat
fi
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if ! [[ "$NODE_ADDRESS" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Could not determine NODE_ADDRESS: $NODE_ADDRESS"
exit 1
fi
echo "---===--- MariaDB Galera Start Script ---===---"
echo "...------======------... MariaDB Galera Start Script ...------======------..."
echo "Got NODE_ADDRESS=$NODE_ADDRESS"

# Read optional secrets from files
Expand Down

0 comments on commit da94230

Please sign in to comment.