]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add oslo db retry decorator to non-CRUD actions
authorKevin Benton <blak111@gmail.com>
Thu, 16 Jul 2015 09:07:48 +0000 (02:07 -0700)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 16 Jul 2015 09:26:36 +0000 (11:26 +0200)
commitbcb4d237a79be9af18f1bcc792e1827c18b058d2
tree200a4ad1695c4f4a3e320359c680d661baaf6db7
parentd28af5466a4ad25c4fccc8a8666f78bff43f0c0d
Add oslo db retry decorator to non-CRUD actions

The previously added decorators to the create and update handlers
in the API layer only applied to actions that followed the standard
create/update path. However, for API operations like add_router_interface,
a different path is followed that wasn't covered by a retry decorator.

This patch adds the decorator to handle deadlocks in those operations as
well.

Closes-Bug: #1475218
Change-Id: Ib354074e6a3f68cedb95fd774f905d94ca16a830
(cherry picked from commit 435ffa7c67cf8668063588e2af760c1ff595dfbb)
neutron/api/v2/base.py