]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move away nested transaction from _ensure_default_security_group
authorRoey Chen <roeyc@vmware.com>
Wed, 29 Jul 2015 11:45:29 +0000 (04:45 -0700)
committerRoey Chen <roeyc@vmware.com>
Sun, 2 Aug 2015 13:53:48 +0000 (13:53 +0000)
commit3fe38d049f9c25045baff138ed82dd5e3ac8ad30
tree3b327888fbcea948814115662e7d2cb987b4d476
parent3b0f10c4645a8971e850da1be49b628608cb6bbd
Move away nested transaction from _ensure_default_security_group

This patch remove the nested transaction started in
_ensure_default_security_group, before calling create_security_group.
Instead, a nested transaction will be started inside
create_security_group.

The purpose of this change is to reduce the time period in which the db
transaction is open (to avoid races, db lock timeouts, etc), when creating
the default security-group.

Closes-Bug: #1479558
Change-Id: Ia0efa72c70c2f405c851370b0b26770008e5ff95
neutron/db/securitygroups_db.py