[Zope-Checkins] SVN: Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py Changed an XXX comment to an ordinary comment, explaining the relevent

Jim Fulton jim at zope.com
Thu Feb 10 07:42:35 EST 2005


Log message for revision 29100:
  Changed an XXX comment to an ordinary comment, explaining the relevent
  issue.
  

Changed:
  U   Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py

-=-
Modified: Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py
===================================================================
--- Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py	2005-02-10 12:41:58 UTC (rev 29099)
+++ Zope/branches/jim-fix-zclasses/lib/python/transaction/_transaction.py	2005-02-10 12:42:35 UTC (rev 29100)
@@ -54,8 +54,10 @@
 
 The second argument to tpc_begin() indicates that a subtransaction
 commit is beginning (if it is true).  In a subtransaction, there is no
-tpc_vote() call.  (XXX: I don't have any idea why.)  The tpc_finish()
-or tpc_abort() call applies just to that subtransaction.
+tpc_vote() call, because sub-transactions don't need 2-phase commit.
+If a sub-transaction abort or commit fails, we can abort the outer
+transaction.  The tpc_finish() or tpc_abort() call applies just to
+that subtransaction.
 
 Once a resource manager is involved in a subtransaction, all
 subsequent transactions will be treated as subtransactions until



More information about the Zope-Checkins mailing list