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 011e7a6 commit 7064d21Copy full SHA for 7064d21
docker-entrypoint.sh
@@ -456,6 +456,12 @@ 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 [ -s "$wsrepdir/grastate.dat" ]; then
460
+ if [[ "$(cat "$wsrepdir/grastate.dat" | grep -i safe_to_bootstrap)" =~ 1 ]]; then
461
+ return 0
462
+ fi
463
464
+
465
if [ -z "$address" ] || [ -n "$WSREP_SKIP_AUTO_BOOTSTRAP" ] || [ -s "$wsrepdir/gvwstate.dat" ]; then
466
return 1
467
fi
0 commit comments