db: Add @_retry_on_deadlock to service_update()
Add the _retry_on_deadlock decorator to the service_update() method of
nova's sqlalchemy API. This decorator is scattered throughout the
sqlalchemy API for other methods that may encounter this error. The
referenced bug report shows a trace from where it occurred on this
method.
Change-Id: I93b370d6457d2e85493be01a62a76404d228a6fa
Closes-bug: #1370191
(cherry picked from commit 61d54f2652
)
This commit is contained in:
parent
67f28d2195
commit
a35a9fd912
|
@ -475,6 +475,7 @@ def service_create(context, values):
|
|||
|
||||
|
||||
@require_admin_context
|
||||
@_retry_on_deadlock
|
||||
def service_update(context, service_id, values):
|
||||
session = get_session()
|
||||
with session.begin():
|
||||
|
|
Loading…
Reference in New Issue