Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove wasteful signal trap from transactions. Backport from 2-0-stable.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@8895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 5b3f7563ae1b4a7160fda7fe34240d40c5777dcd 1 parent f756bfb
Jeremy Kemper jeremy authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  activerecord/lib/active_record/transactions.rb
2  activerecord/lib/active_record/transactions.rb
View
@@ -82,7 +82,6 @@ def self.included(base)
# Tribute: Object-level transactions are implemented by Transaction::Simple by Austin Ziegler.
module ClassMethods
def transaction(*objects, &block)
- previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" }
increment_open_transactions
begin
@@ -101,7 +100,6 @@ def transaction(*objects, &block)
raise
ensure
decrement_open_transactions
- trap('TERM', previous_handler)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.