]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid synchronizing session when deleting networkdhcpagentbinding
authorEugene Nikanorov <enikanorov@mirantis.com>
Tue, 7 Apr 2015 20:15:43 +0000 (00:15 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Wed, 8 Apr 2015 20:50:52 +0000 (23:50 +0300)
commit29dd67ff754eba3064549886c0906a83500d1879
treea3e2bae3e0323ba6cbf3d997be438ea9a776b57c
parent3deccfe189ecc2e700a63b48d15a587ab8311f6b
Avoid synchronizing session when deleting networkdhcpagentbinding

Synchronizing session on delete leads to traces in neutron-server
logs when such binding is deleted concurrently.
Also, catch and ignore ObjectDeletedError during iterating over
bindings, that is possible since the code is not within a transaction.

Change-Id: I7a2c9a8a59ce313c7d242230eeb5da69986bfbd4
Closes-Bug: #1424593
neutron/db/agentschedulers_db.py