[Zope3-checkins] CVS: ZODB4/src/zodb/storage - fsdump.py:1.3.8.2

Barry Warsaw barry@wooz.org
Mon, 10 Mar 2003 15:11:47 -0500


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

Modified Files:
      Tag: opaque-pickles-branch
	fsdump.py 
Log Message:
dump_data(): Teach this to read past the refs.


=== ZODB4/src/zodb/storage/fsdump.py 1.3.8.1 => 1.3.8.2 ===
--- ZODB4/src/zodb/storage/fsdump.py:1.3.8.1	Mon Mar 10 14:37:53 2003
+++ ZODB4/src/zodb/storage/fsdump.py	Mon Mar 10 15:11:46 2003
@@ -89,9 +89,10 @@
             print >> self.dest, "non-version data offset: %d" % u64(pnv)
             print >> self.dest, \
                   "previous version data offset: %d" % u64(sprevdata)
+        print >> self.dest, 'numrefs:', nrefs
+        self.file.read(nrefs * 8)
         print >> self.dest, "len(data): %d" % dlen
         self.file.read(dlen)
-        print >> self.dest, 'numrefs:', nrefs
         if not dlen:
             sbp = self.file.read(8)
             print >> self.dest, "backpointer: %d" % u64(sbp)