[Zope-Checkins] CVS: StandaloneZODB/ZODB - FileStorage.py:1.77.4.8

Jeremy Hylton jeremy@zope.com
Thu, 24 Jan 2002 18:38:25 -0500


Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv14273

Modified Files:
      Tag: Recovery
	FileStorage.py 
Log Message:
Fix recover() method for George Bailey objects.

If the object creation is being undone, because of abort version or
transactional undo, write a zero backpointer.  This marks the object
is currently deleted.




=== StandaloneZODB/ZODB/FileStorage.py 1.77.4.7 => 1.77.4.8 ===
             if data is not None:
                 self._tfile.write(data)
+            else:
+                self._tfile.write(z64)
         finally:
             self._lock_release()