public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
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
jeremy (author)
Mon Feb 18 18:09:55 -0800 2008
commit  5b3f7563ae1b4a7160fda7fe34240d40c5777dcd
tree    2109d175f24da725313f31d7d41b7b0e9efa2ff6
parent  f756bfbe89da504729a1e59d1cbfc4044257057d
...
82
83
84
85
86
87
88
...
101
102
103
104
105
106
107
...
82
83
84
 
85
86
87
...
100
101
102
 
103
104
105
0
@@ -82,7 +82,6 @@
0
     # Tribute: Object-level transactions are implemented by Transaction::Simple by Austin Ziegler.
0
     module ClassMethods
0
       def transaction(*objects, &block)
0
- previous_handler = trap('TERM') { raise TransactionError, "Transaction aborted" }
0
         increment_open_transactions
0
 
0
         begin
0
@@ -101,7 +100,6 @@
0
           raise
0
         ensure
0
           decrement_open_transactions
0
- trap('TERM', previous_handler)
0
         end
0
       end
0
 

Comments

    No one has commented yet.