Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
02/19/08 02:09:55 (7 months ago)
Author:
bitsweat
Message:

Remove wasteful signal trap from transactions. Backport from 2-0-stable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-2-stable/activerecord/lib/active_record/transactions.rb

    r5406 r8895  
    8383    module ClassMethods 
    8484      def transaction(*objects, &block) 
    85         previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" } 
    8685        increment_open_transactions 
    8786 
     
    102101        ensure 
    103102          decrement_open_transactions 
    104           trap('TERM', previous_handler) 
    105103        end 
    106104      end