Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The use of wrap_db() to catch low-level problems in the connection pool appears to be incompatible with new versions of sqlalchemy (0.7.4/precise). This re-instates the use of a event listener to catch the error of 'mysql has gone away'. Keeps the wrapping logic in place for use before the connection pool has been constructed, specifically to allow glance to retry its initial database connection on service startup. Fixes bug 967887 Change-Id: Ia732377d3404104b8acf7fe4ada164ec7ecf705f
- Loading branch information
Showing
1 changed file
with
27 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