]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
port-update fails when using SELECT FOR UPDATE lock
authorzhhuabj <zhhuabj@cn.ibm.com>
Wed, 10 Jul 2013 09:49:01 +0000 (17:49 +0800)
committerzhhuabj <zhhuabj@cn.ibm.com>
Wed, 10 Jul 2013 10:07:32 +0000 (18:07 +0800)
commitb9900c2334abf5e4b1ad09ee24ed88184c085349
tree9ad7356309ad1a54abb0d2de59bb326092074360
parentd80048eefc4c076c241d747ea63cb885382f04f0
port-update fails when using SELECT FOR UPDATE lock

In Postgresql, it will throw the bellow exception when
using SELECT FOR UPDATE lock combined with outer join.
"SELECT FOR UPDATE/SHARE cannot be applied to the
 nullable side of an outer join"

The reason can refer http://www.postgresql.org/ \
message-id/21634.1160151923@sss.pgh.pa.us

for this issue, I don't think outer join is necessary,
so I change it to use inner join.

Fixes bug #1191653

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