Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
branch: master
4 comments

Ensure a deadlocked transaction is retried from beginning of the tran…

…saction.

Prior to this, if #transaction were called recursively, a deadlock
resulted in merely the innermost transaction call being retried,
which did not actually retry the transaction.
latest commit 303e830b2f
@jamis jamis authored

README

Deadlock Retry
==============

Deadlock retry allows the database adapter (currently only tested with the
MySQLAdapter) to retry transactions that fall into deadlock. It will retry
such transactions three times before finally failing.

This capability is automatically added to ActiveRecord. No code changes or otherwise are required.

Copyright (c) 2005 Jamis Buck, released under the MIT license
Something went wrong with that request. Please try again.