[Zodb-checkins] CVS: Zope3/src/zodb/storage - fsdump.py:1.2.4.3

Jeremy Hylton jeremy@zope.com
Thu, 23 Jan 2003 12:40:12 -0500


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

Modified Files:
      Tag: new-pickle-branch
	fsdump.py 
Log Message:
Fix typo: Metadata is 1024 bytes not 1023.


=== Zope3/src/zodb/storage/fsdump.py 1.2.4.2 => 1.2.4.3 ===
--- Zope3/src/zodb/storage/fsdump.py:1.2.4.2	Thu Jan 23 11:58:06 2003
+++ Zope3/src/zodb/storage/fsdump.py	Thu Jan 23 12:40:09 2003
@@ -33,10 +33,11 @@
         self.dest = dest
 
     def dump(self):
-        fid = self.file.read(1023)
+        fid = self.file.read(1024)
         print >> self.dest, "*" * 60
         print >> self.dest, "file identifier: %r" % fid[:4]
         print >> self.dest, "database version: %r" % fid[4:8]
+        # XXX perhaps verify that the rest of the metadata is nulls?
         while self.dump_txn():
             pass