Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
database: handle nested transaaction when trying to close before tran…
…saction (PROJQUAY-3303) (#1157) * Revert "database: force close existing non-pooled connections before transaction (PROJQUAY-3303) (#1153)" This reverts commit 7cdb88b. * database: handle nested transaaction when trying to close before transaction (PROJQUAY-3303) Handle nested transaction when trying to catch InterfaceError from pymsql/mysql's idle connections. If the connection is already in a transaction, then we'll assume it doesn't need to be closed beforehand, as it's probably in-use, and unlikely to be cleaned up.
- Loading branch information