]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure that session is rolled back on bulk creates
authorarmando-migliaccio <armamig@gmail.com>
Thu, 13 Feb 2014 19:36:34 +0000 (11:36 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 13 Feb 2014 22:29:29 +0000 (14:29 -0800)
commitcb3f86dd781587eaa9fca6cc4a2f98de93526db7
treeddfbc3a770bc200cdda9edb041b497aaa12c9299
parent4d63a13681b53c4436bbe9ec40c38cea36ea50a0
Ensure that session is rolled back on bulk creates

During bulk creates, the session is began explicitely;
ensure that it gets rolled back before re-raising in
order to avoid triggering InvalidRequestError
exceptions when the session is reused.

Partial-bug: 1244757

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