]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move postcommit ops out of transaction for bulk
authorMohammad Banikazemi <mb@us.ibm.com>
Sat, 6 Sep 2014 14:24:01 +0000 (10:24 -0400)
committerMohammad Banikazemi <mb@us.ibm.com>
Wed, 7 Jan 2015 18:03:13 +0000 (13:03 -0500)
commit2ee08c3464c53abaf9bc5493132ad7958611e3b8
treeb585b6be03d79f31c5efa68bcf1596dba8c60c84
parent5de1d2ed67e00a010f23c5f9055556745a55957a
Move postcommit ops out of transaction for bulk

Currently, the bulk create operations in ML2 are executed in
a transaction. This means all precommit and postcommit operations
for such operations are in a transaction. Postcommit operations
are expected to be executed outside of transactions as they may
communicate with a backend and introduce substantial delays. This
fix removes the postcommit operations from the transaction for
bulk create network/subnet/port operations.

Change-Id: I9a9683058088e50d9443040223232bf5e1396ccf
Closes-Bug: #1193861
neutron/plugins/ml2/drivers/mech_bigswitch/driver.py
neutron/plugins/ml2/managers.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py
neutron/tests/unit/ml2/drivers/mechanism_bulkless.py [deleted file]
neutron/tests/unit/ml2/test_ml2_plugin.py
neutron/tests/unit/test_db_plugin.py
setup.cfg