Skip to content

Commit 38bebe0

Browse files
committed
MDEV-25667: check gvwstate.dat before bootstrap
1 parent d9c2595 commit 38bebe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ _main() {
573573
mysql_note "Galera cluster addresses ${WSREP_CLUSTER_ADDRESS}"
574574

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

0 commit comments

Comments
 (0)