[Zope-Checkins] CVS: Zope2 - FileStorage.py:1.31

Jim Fulton jim@korak.digicool.com
Tue, 7 Dec 1999 13:28:13 -0500


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/tmp/cvs-serv16991

Modified Files:
	FileStorage.py 
Log Message:
The following scenario could lead to strange and serious errors:

  - Restart or pack Zope, causing an index to get written

  - Undo some transactions

  - Shutdown Zope ungracefully (e.g. kill)

When Zope comes up, the index points to undone records for some
objects. This can lead to all sorts of problems. :(

To overcome this problem, we now remove the index after an
undo.

This increases the likelyhood that it will take longer to restart
next time, but reduces the chance of a bad index.