summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-09-26 13:03:57 -0400
committerRoman Podoliaka <rpodolyaka@mirantis.com>2014-09-30 14:42:28 +0000
commit0bb1e236daae53a3f5b4b88761d7b19f7961ed6c (patch)
treefc9de06ef7086390916e8a60b6409d9da7020410 /LICENSE
parent2849f1bdca0c39b342d434c06cdc23dc6cf946f4 (diff)
downloadoslo-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