github / gh-ost

GitHub's Online Schema-migration Tool for MySQL
MIT License
12.31k stars 1.25k forks source link

Add `--mysql-wait-timeout` flag #1401

Closed timvaillancourt closed 5 months ago

timvaillancourt commented 5 months ago

A Pull Request should be associated with an Issue.

Related issue:https://github.com/github/gh-ost/issues/1402

Description

This PR adds a --mysql-wait-timeout=# flag that sets the session-level wait_timeout if > 0. This will cause the server to cleanup inactive connections sooner or later depending on the value

In case this PR introduced Go code changes: