diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-22 19:05:26 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-22 19:05:26 +0000 |
commit | 38f8252e2d0a109d1b833d6b289cd989e7bfffe4 (patch) | |
tree | cbdcf595ef54ee83ef63aabce20a5e360251e12e /activerecord | |
parent | fa906778ffdc22671cca11b5db1bf80cc44d9468 (diff) | |
download | rails-38f8252e2d0a109d1b833d6b289cd989e7bfffe4.tar.gz rails-38f8252e2d0a109d1b833d6b289cd989e7bfffe4.tar.bz2 rails-38f8252e2d0a109d1b833d6b289cd989e7bfffe4.zip |
Remove leaky unused signal handler for transactions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8484 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 9c68435b0c..d1962f0c1f 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -73,14 +73,12 @@ module ActiveRecord # trigger a ROLLBACK when raised, but not be re-raised by the transaction block. module ClassMethods def transaction(&block) - previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" } increment_open_transactions begin connection.transaction(Thread.current['start_db_transaction'], &block) ensure decrement_open_transactions - trap('TERM', previous_handler) end end |