Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Latest commit 303e830 4 @jamis jamis Ensure a deadlocked transaction is retried from beginning of the tran…

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.


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.