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 3aa381a commit f7f2deeCopy full SHA for f7f2dee
base-defaultconfig/init.sh
@@ -25,7 +25,8 @@ function wsrepRecover {
25
}
26
27
function wsrepForceBootstrap {
28
- sed -i 's|safe_to_bootstrap: 0|safe_to_bootstrap: 1|' /data/db/grastate.dat
+ sed -i 's|safe_to_bootstrap: 0|safe_to_bootstrap: 1|' /data/db/grastate.dat \
29
+ || [ ! -f /data/db/grastate.dat ] && echo 'Patch failed due to no /data/db/grastate.dat, might not need to force bootstrap'
30
31
32
[[ $STATEFULSET_SERVICE = mariadb.* ]] || echo "WARNING: unexpected service name $STATEFULSET_SERVICE, Peer detection below may fail falsely."
0 commit comments