Add _wrap_db_error support for postgresql
Bug #1331942 reported by
ling-yun
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The original "_wrap_db_error" function is only available for mysql.
We need to add support for postgresql.
The deadlock exception thrown from postgresql is TransactionRoll
it's not the same with "OperationalError" thrown from mysql,
and isn't included in sqlalchemy. So, the base exception need to be
catched.
Changed in cinder: | |
assignee: | nobody → ling-yun (zengyunling) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/104562
Review: https:/