]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix port creation issue appeared with postgresql backend
authorEugene Nikanorov <enikanorov@mirantis.com>
Thu, 22 Aug 2013 15:08:34 +0000 (19:08 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Fri, 23 Aug 2013 10:14:46 +0000 (14:14 +0400)
commite43c5c1ea6441ad7d36e25bd283a5a580bf5cb09
treec9b9da4b17f0a978483c4878bbbd5d4f1d42ba92
parent1c2e111a0be07c9005e212ca634a1ea174f616a5
Fix port creation issue appeared with postgresql backend

IPAllocationPool has relation to IPAvailabilityRange which is setup to
load eagerly. Eager loading is implemented with left outer join which is
incompatible with with_lockmode('update') on postgresql.
The fix redefines eager loading with options(joinedload) making it use
inner join.

fixes bug 1215350

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