Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. +0 2  activerecord/lib/active_record/transactions.rb
2  activerecord/lib/active_record/transactions.rb
@@ -82,7 +82,6 @@ def self.included(base)
82 82 # Tribute: Object-level transactions are implemented by Transaction::Simple by Austin Ziegler.
83 83 module ClassMethods
84 84 def transaction(*objects, &block)
85   - previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" }
86 85 increment_open_transactions
87 86
88 87 begin
@@ -101,7 +100,6 @@ def transaction(*objects, &block)
101 100 raise
102 101 ensure
103 102 decrement_open_transactions
104   - trap('TERM', previous_handler)
105 103 end
106 104 end
107 105

0 comments on commit 5b3f756

Please sign in to comment.
Something went wrong with that request. Please try again.