]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Change transaction isolation so retry logic could work properly
authorEugene Nikanorov <enikanorov@mirantis.com>
Mon, 17 Nov 2014 07:00:49 +0000 (11:00 +0400)
committerenikanorov <enikanorov@mirantis.com>
Fri, 16 Jan 2015 09:08:09 +0000 (09:08 +0000)
commit6617f8fccc8d99520a87cd84a598c4f9a1a43761
treee2efee6aaa5524a47d04caf7f774e0a154c7533b
parent5638a7c4e8ac7534a61ec084627e317f959005b3
Change transaction isolation so retry logic could work properly

Lower isolation level from REPEATABLE READ to READ COMMITTED for
transaction that is used to create a network.
This allows retry logic to see changes done in other connections
while doing the same query.
Perform that only for mysql db backend.

Change-Id: I6b9d9212c37fe028566e0df4a3dfa51f284ce6e9
Closes-Bug: #1382064
neutron/db/sqlalchemyutils.py
neutron/plugins/ml2/plugin.py
neutron/tests/functional/db/test_sqla_utils.py [new file with mode: 0644]