]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Retry on database deadlock on service_update method
authorIvan Kolodyazhny <e0ne@e0ne.info>
Fri, 13 Nov 2015 18:56:55 +0000 (20:56 +0200)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Fri, 13 Nov 2015 18:56:55 +0000 (20:56 +0200)
commitb77bcf38d794543e3361fa968787d5cb6ce3887d
treef506f27bbc946f2c1653734a1d0517317394bf16
parentf6fdbedca00508432757ffab0108ad010b0f90df
Retry on database deadlock on service_update method

service_update could fail with deadlock in some active-active
deployments. Added _retry_on_deadlock decorator to fix this issue.

Change-Id: Icfedb5ec0042e1d588314d56856f9ebab537665e
Closes-Bug: #1516124
cinder/db/sqlalchemy/api.py