Flush objects by ourselves before processing before_commit event
During commit processing, sqla automatically flushes objects.
However, it does so after dispatching the before_commit event,
while Neutron expects it happens before the event. This
counter-intuitive behaviour might or might not be considered
a bug in sqla. Anyway, it's better to be safe in our side.
Reviewed: https:/ /review. openstack. org/452691 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=9a0907dbb9e af1dcf7f1ccfc22 b0e6e4f775b046
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9a0907dbb9eaf1d cf7f1ccfc22b0e6 e4f775b046
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Apr 3 19:31:32 2017 +0900
Flush objects by ourselves before processing before_commit event
During commit processing, sqla automatically flushes objects. intuitive behaviour might or might not be considered
However, it does so after dispatching the before_commit event,
while Neutron expects it happens before the event. This
counter-
a bug in sqla. Anyway, it's better to be safe in our side.
Closes-Bug: #1678726 0299d6d281983e9 f7f8ae6def0
Change-Id: Iceaf178be2885b