deadlock_retry icon indicating copy to clipboard operation
deadlock_retry copied to clipboard

avoid stack too deep with alias_method

Open pedroteixeira opened this issue 15 years ago • 0 comments

Use something like what follows in deadlock_retry.rb if !method_defined?(:transaction_without_deadlock_handling) alias_method :transaction_without_deadlock_handling, :transaction alias_method :transaction, :transaction_with_deadlock_handling end

For some reason the the code was executed twice.

pedroteixeira avatar Dec 05 '09 00:12 pedroteixeira