[Zodb-checkins] CVS: StandaloneZODB/ZODB - FileStorage.py:1.77.4.9

Barry Warsaw barry@wooz.org
Thu, 24 Jan 2002 19:10:18 -0500


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

Modified Files:
      Tag: Recovery
	FileStorage.py 
Log Message:
recover(): Slight rewrite of the zero backpointer code, along with a
helpful comment.


=== StandaloneZODB/ZODB/FileStorage.py 1.77.4.8 => 1.77.4.9 ===
                 self._tfile.write(version)
             # And finally, write the data
-            if data is not None:
-                self._tfile.write(data)
-            else:
+            if data is None:
+                # Write a zero backpointer, which is indication used to
+                # represent an un-creation transaction.
                 self._tfile.write(z64)
+            else:
+                self._tfile.write(data)
         finally:
             self._lock_release()