We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7064d21 commit 27fd1eaCopy full SHA for 27fd1ea
docker-entrypoint.sh
@@ -456,13 +456,19 @@ wsrep_enable_new_cluster() {
456
local wsrepdir="$(mysql_get_config 'wsrep-data-home-dir' "$@")"
457
local wsrepaddr="$(wsrep_address_normalize "$(mysql_get_config 'wsrep-node-address' "$@")")"
458
459
+ if [ -n "$WSREP_SKIP_AUTO_BOOTSTRAP" ]; then
460
+ return 1
461
+ fi
462
+
463
if [ -s "$wsrepdir/grastate.dat" ]; then
464
if [[ "$(cat "$wsrepdir/grastate.dat" | grep -i safe_to_bootstrap)" =~ 1 ]]; then
465
return 0
466
fi
467
468
469
470
- if [ -z "$address" ] || [ -n "$WSREP_SKIP_AUTO_BOOTSTRAP" ] || [ -s "$wsrepdir/gvwstate.dat" ]; then
471
+ if [ -z "$address" ] || [ -s "$wsrepdir/gvwstate.dat" ]; then
472
return 1
473
474
0 commit comments