]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
NSX: Sync do not pass around model object
authorAaron Rosen <arosen@nicira.com>
Tue, 18 Feb 2014 20:22:42 +0000 (12:22 -0800)
committerAaron Rosen <aaronorosen@gmail.com>
Mon, 10 Mar 2014 23:42:00 +0000 (16:42 -0700)
commit084b7f62280241a9037b6f9e592c466135e5fec1
tree0b0a2634d304faa841f4010e6b3c72ac93329fbf
parent42e0cbc79b3c84d86da4a96b39c8de9fcf7d94ab
NSX: Sync do not pass around model object

The NSX sync backend previously passed around a sqlalchemy model object
around which was nice because we did not need to query the database an
additional time to update the status of an object.

Unfortunately, this was add done within a db transaction which included a
call to NSX which could cause deadlock this needed to be removed. Now a
dict is passed around instead and proper transaction handling
is used when updating objects.

Change-Id: Id50abd8f2143b127d1ca81c360c1c6d400e1d74f
Closes-bug: #1281772
neutron/plugins/vmware/common/sync.py