rossella 1b7c295d52 Retry query if db deadlock error is received
Add a decorator retry_on_deadlock(). All db.api functions marked
with this decorator will be retried if a DBDeadlock exception is
received.

Change-Id: I3488bfec67ec1c563292f1b61a7a9697f118809c
Closes-bug: 1348588
2015-01-14 09:56:02 +00:00
..