Merge "Add retry_on_deadlock to migration_update DB API" into stable/queens
This commit is contained in:
commit
78e53bd388
|
@ -4280,6 +4280,7 @@ def migration_create(context, values):
|
||||||
return migration
|
return migration
|
||||||
|
|
||||||
|
|
||||||
|
@oslo_db_api.wrap_db_retry(max_retries=5, retry_on_deadlock=True)
|
||||||
@pick_context_manager_writer
|
@pick_context_manager_writer
|
||||||
def migration_update(context, id, values):
|
def migration_update(context, id, values):
|
||||||
migration = migration_get(context, id)
|
migration = migration_get(context, id)
|
||||||
|
|
Loading…
Reference in New Issue