deb-python-oslo.db/oslo_db/sqlalchemy
Mike Bayer 7c5b7d3e03 Don't access connection.info if connection is invalidated
The connection.info dictionary comes from the underlying
pooled connection, which in a disconnection situation
is not there; trying to access it makes it try to reconnect.
Inside of rollback(), SQLAlchemy doesn't allow us to
reconnect yet because we haven't finished removing the
transctional state that corresponds to the now-discarded
connection.  Therefore we have to check connection.invalidated
inside of our rollback handlers before trying to add/remove tokens
from connection.info.

Change-Id: Icd10ada68d6d53410ac88eca3577f04c5e30087e
Resolves-bug: #1704474
2017-07-14 16:15:01 -04:00
..
compat Adjust SAVEPOINT cause test for SQLA 1.1 2016-11-16 12:41:40 -05:00
migration_cli Remove log translations 2017-03-30 08:42:42 +08:00
__init__.py Move files out of the namespace package 2014-12-24 13:28:48 +02:00
enginefacade.py Merge "Add 'save_and_reraise_exception' method when call 'session.rollback()'" 2017-07-05 11:32:54 +00:00
engines.py Merge "Enable MySQL Storage Engine selection" 2017-06-28 08:19:46 +00:00
exc_filters.py Don't access connection.info if connection is invalidated 2017-07-14 16:15:01 -04:00
migration.py Raise only DbMigrationError from migrate 'upgrade' method 2017-05-25 18:37:34 +05:30
models.py SoftDeleteMixin: coerce deleted param to be an integer 2016-11-28 13:20:50 +02:00
ndb.py Enable MySQL Storage Engine selection 2017-06-26 10:33:01 -06:00
orm.py Implement new oslo.db.sqlalchemy.enginefacade module 2015-06-04 11:43:39 -04:00
provision.py Remove log translations 2017-03-30 08:42:42 +08:00
session.py turn on warning-is-error in doc build 2017-07-03 11:28:14 +00:00
test_base.py Support facade arguments, unstarted facade for patch_engine() 2017-02-16 13:11:24 +02:00
test_fixtures.py Remove unused logging import 2017-02-17 13:37:28 +07:00
test_migrations.py turn on warning-is-error in doc build 2017-07-03 11:28:14 +00:00
types.py SoftDeleteMixin: allow for None values 2016-11-28 18:19:18 +02:00
update_match.py Fix typos in comments and docstring 2016-06-13 14:16:39 +08:00
utils.py Enable MySQL Storage Engine selection 2017-06-26 10:33:01 -06:00