diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-26 13:03:57 -0400 |
---|---|---|
committer | Roman Podoliaka <rpodolyaka@mirantis.com> | 2014-09-30 14:42:28 +0000 |
commit | 0bb1e236daae53a3f5b4b88761d7b19f7961ed6c (patch) | |
tree | fc9de06ef7086390916e8a60b6409d9da7020410 /LICENSE | |
parent | 2849f1bdca0c39b342d434c06cdc23dc6cf946f4 (diff) | |
download | oslo-db-1.0.2.tar.gz |
Move begin ping listener to a connect listener1.0.2
The "reconnect" listener that occurs on transaction begin
is not sufficient for libraries that use engines, connections
and sessions in "autocommit" mode, where no transaction is begun.
So we move our "ping" from the begin phase to the "connect"
phase instead. We use a newer SQLAlchemy event "engine_connect"
so that we can make use of the Connection and all the disconnect/
invalidation facilities that are included, rather than using
the low-level pool listener which is somewhat legacy.
Since the event was added in SQLAlchemy 0.9.0, a compatibility
layer is added which emulates the mechanics of the
handle_error compatibility layer.
Change-Id: I719fe45e657e747e5f8d64f20059e2b61c79b63d
Closes-bug: #1374497
(cherry picked from commit 228531013b4121531777878659e6e573029bacbc)
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions