From 5b3f7563ae1b4a7160fda7fe34240d40c5777dcd Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 19 Feb 2008 02:09:55 +0000 Subject: [PATCH] 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 --- activerecord/lib/active_record/transactions.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 6a776966bb189..1a3db1ceb01cc 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/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