Commit 4e5418b3 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo
Browse files

force bootstrap

parent 0ba967d0
Pipeline #3143 passed with stage
in 23 seconds
......@@ -75,11 +75,12 @@ echo "#
if [ "$leader" = "$MY_IP" ];
then
online=""
sed -Eie 's/^(safe_to_bootstrap:).*/\1 1/' "${PXC_DATA}/grastate.dat"
elif [ "$first_time" = "1" ];
then
tries = 30
while [ "$tries" -gt "0" ] && ! echo 1 > /dev/tcp/$leader/3306;
while [ $tries -gt 0 ] && ! echo 1 > /dev/tcp/$leader/3306;
do
tries=$(( $tries - 1 ))
echo "Waiting for the leader $leader, I will try more $tries times"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment