]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove SELECT FOR UPDATE from delete_network and delete_subnet
authorrossella <rsblendido@suse.com>
Tue, 16 Sep 2014 22:30:12 +0000 (22:30 +0000)
committerrossella <rsblendido@suse.com>
Wed, 7 Jan 2015 15:13:25 +0000 (15:13 +0000)
commitbe6c51ccd72a3cea02e5feef1b6162b451a88bd1
tree85e985130253eaf2c3e37c65670e132ec3e88b0b
parentcddf3388993539aad450de017070d7902d8ee29f
Remove SELECT FOR UPDATE from delete_network and delete_subnet

delete_network and delete_subnet instead of using SELECT FOR UPDATE
delete the ports that are allowed to be auto deleted straight away.
Then a check is performed, if there are ports still associated
with the network or the subnet that cannot be autodeleted,
an exception is raised. The operation will be rolled back.

Partial-bug: #1331564

Change-Id: I29178204b3a220c1c6010f59272981fb1b4099fe
neutron/db/db_base_plugin_v2.py