[Zope-Checkins] CVS: Zope2 - Transaction.py:1.22

Jim Fulton jim@digicool.com
Tue, 30 May 2000 15:03:27 -0400


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/projects/users/jim/Zope2/lib/python/ZODB

Modified Files:
	Transaction.py 
Log Message:
Fixed bug that could cause infinate loop when odd objects
got registered. (Deja vu all over again. ;)

Changed to commit objects in registration order and to allow
additional objects to get registered while commiting. (The 
later was wanted by PJE.)

Added a comment in commit to explain the "invariant".

Fixed bug that caused objects to get multiply aborted.  Now always
clear object registry on commit and abort. This seems like a good
idea anyway. (We were relying on free_transaction to have the
same effect. This faild miserably in single-threaded apps and
in certain error conditions.

Added a teeny optimization in get_transaction().