Skip to content

Commit

Permalink
MDEV-25667: check gvwstate.dat before bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Feb 15, 2022
1 parent d9c2595 commit 38bebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ _main() {
mysql_note "Galera cluster addresses ${WSREP_CLUSTER_ADDRESS}"

# determine if this node is used for cluster bootstrapping. Skip it when cluster was already bootstrapped
if wsrep_enable_new_cluster "${WSREP_CLUSTER_ADDRESS}" "$@"; then
if [ ! -s "${DATADIR}"/gvwstate.dat ] && wsrep_enable_new_cluster "${WSREP_CLUSTER_ADDRESS}" "$@"; then
mysql_note "Enabled Galera cluster bootstrapping for this node"
set -- "$@" --wsrep-new-cluster
fi
Expand Down

0 comments on commit 38bebe0

Please sign in to comment.