[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.15

Tim Peters tim.one at comcast.net
Fri Mar 19 17:29:52 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv1181/src/transaction

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
_commitResources():  arrange to call tpc_abort if commit_sub() fails; this
fixes a failure in testExceptionInSubCommitSub.


=== Zope3/src/transaction/_transaction.py 1.1.2.14 => 1.1.2.15 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.14	Fri Mar 19 17:02:45 2004
+++ Zope3/src/transaction/_transaction.py	Fri Mar 19 17:29:51 2004
@@ -174,8 +174,8 @@
                 # commit_sub().
                 if not subtransaction and id(rm) in self._sub:
                     print "commit_sub", rm
-                    rm.commit_sub(self)
                     del self._sub[id(rm)]
+                    rm.commit_sub(self)
                 else:
                     print "tpc_begin", subtransaction, rm
                     rm.tpc_begin(self, subtransaction)




More information about the Zope3-Checkins mailing list