]> 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)
committerKevin Benton <blak111@gmail.com>
Thu, 16 Jul 2015 12:19:45 +0000 (05:19 -0700)
commitd04335c448aa15cf9e1902e22ed4cd17b6ed344b
tree1a06198c78d7d7b508534743cf2f1a70997546d9
parent99920097c6a4c282d4e52d9e65d9045e6c21694c
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
neutron/api/v2/base.py
neutron/db/api.py