Permalink
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...
1 parent f756bfb commit 5b3f7563ae1b4a7160fda7fe34240d40c5777dcd @jeremy jeremy committed Feb 19, 2008
Showing with 0 additions and 2 deletions.
  1. +0 −2 activerecord/lib/active_record/transactions.rb
View
2 activerecord/lib/active_record/transactions.rb
@@ -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

0 comments on commit 5b3f756

Please sign in to comment.