Skip to content

Commit

Permalink
K8SPXC-1222: Remove state check for 5.7 (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
egegunes authored Dec 12, 2024
1 parent 317c7bb commit a6245dc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions build/pxc-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -522,19 +522,11 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then
fi
set -x

if [[ "$MYSQL_VERSION" =~ ^(8\.0|8\.4)$ ]]; then
mysqlState="startup"
while [[ "${mysqlState}" != "ready" ]]; do
mysqlState=$(tr -d '\0' < ${MYSQL_STATE_FILE})
echo >&2 "MySQL upgrade process in progress..."
sleep 1
done
fi
for i in {120..0}; do
if echo 'SELECT 1' | "${mysql[@]}" &>/dev/null; then
break
fi

echo >&2 "MySQL upgrade process in progress..."
sleep 1
done
if [ "$i" = 0 ]; then
Expand Down

0 comments on commit a6245dc

Please sign in to comment.