[Zodb-checkins] CVS: Zope3/src/zodb/storage - file.py:1.5.2.3

Jeremy Hylton jeremy@zope.com
Thu, 23 Jan 2003 13:35:04 -0500


Update of /cvs-repository/Zope3/src/zodb/storage
In directory cvs.zope.org:/tmp/cvs-serv26304

Modified Files:
      Tag: new-pickle-branch
	file.py 
Log Message:
Properly account for the extra 2 bytes of storage version metadata.


=== Zope3/src/zodb/storage/file.py 1.5.2.2 => 1.5.2.3 ===
--- Zope3/src/zodb/storage/file.py:1.5.2.2	Thu Jan 23 12:46:35 2003
+++ Zope3/src/zodb/storage/file.py	Thu Jan 23 13:35:01 2003
@@ -418,7 +418,7 @@
         else:
             self._file.write("\0" * 4)
         # Fill the rest with null bytes
-        self._file.write("\0" * (self._metadata_size - 6))
+        self._file.write("\0" * (self._metadata_size - 8))
 
     def _read_data_header(self, pos, oid=None):
         self._file.seek(pos)