Skip to content

Commit

Permalink
fix: Use MYSQL_EXTERNAL_PORT consistently for etcd node registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 9, 2024
1 parent c0f324b commit 1168e96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cleanup-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ cleanup() {
if [ -n "$NODE_ID" ] && [ -n "$LEASE_ID" ]; then
status_json=$(jq -n \
--arg hostname "$HOSTNAME" \
--arg port "$PORT" \
--arg port "$MYSQL_EXTERNAL_PORT" \
'{
status: "offline",
hostname: $hostname,
Expand Down
2 changes: 1 addition & 1 deletion lib/etcd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ register_node() {
--arg status "online" \
--arg role "$CURRENT_ROLE" \
--arg host "$HOST" \
--arg port "${MYSQL_PORT}" \
--arg port "${MYSQL_EXTERNAL_PORT}" \
--arg last_seen "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--arg gtid "$(get_gtid_position)" \
--arg connections "${curr_connections:-0}" \
Expand Down
2 changes: 1 addition & 1 deletion lib/mysql-role.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ update_node_status() {
--arg status "$status" \
--arg role "$new_role" \
--arg host "$HOST" \
--arg port "${PORT:-3306}" \
--arg port "${MYSQL_EXTERNAL_PORT}" \
--arg last_seen "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--arg gtid "$(get_gtid_position)" \
'{
Expand Down

0 comments on commit 1168e96

Please sign in to comment.