Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move server shutdown translation to abstract mysql
1053 is the server shutdown error code. We see these fairly often at GitHub when, for example, shutting down Vitess vtage processes for maintenance. Translating the error to `ConnectionFailed` allows us to treat these as retryable connection error, so we can reconnect and hit a new vtage process. This is all true regardless of whether the adapter is trilogy or mysql2 or whatever, so this commit moves the translation out into the abstract mysql adapter.
- Loading branch information
1 parent
808b052
commit c616fe2
Showing
2 changed files
with
2 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters