Merge "Fixes DBDeadlock race condition during driver initialization."

This commit is contained in:
Jenkins 2016-11-22 07:45:39 +00:00 committed by Gerrit Code Review
commit f0575dc1ba

@ -62,6 +62,7 @@ class VlanTypeDriver(helpers.SegmentTypeDriver):
sys.exit(1)
LOG.info(_LI("Network VLAN ranges: %s"), self.network_vlan_ranges)
@db_api.retry_db_errors
def _sync_vlan_allocations(self):
session = db_api.get_session()
with session.begin(subtransactions=True):