Skip to content

Commit

Permalink
Remove wasteful signal trap from transactions. Backport from 2-0-stable.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@8895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Feb 19, 2008
1 parent f756bfb commit 5b3f756
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions activerecord/lib/active_record/transactions.rb
Expand Up @@ -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
Expand All @@ -101,7 +100,6 @@ def transaction(*objects, &block)
raise
ensure
decrement_open_transactions
trap('TERM', previous_handler)
end
end

Expand Down

0 comments on commit 5b3f756

Please sign in to comment.