[Zodb-checkins] CVS: ZODB4/src/zodb/storage - fsdump.py:1.3.8.1

Barry Warsaw barry@wooz.org
Mon, 10 Mar 2003 14:37:54 -0500


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

Modified Files:
      Tag: opaque-pickles-branch
	fsdump.py 
Log Message:
Teach this about numrefs.


=== ZODB4/src/zodb/storage/fsdump.py 1.3 => 1.3.8.1 ===
--- ZODB4/src/zodb/storage/fsdump.py:1.3	Fri Jan 24 18:20:52 2003
+++ ZODB4/src/zodb/storage/fsdump.py	Mon Mar 10 14:37:53 2003
@@ -74,7 +74,7 @@
         pos = self.file.tell()
         h = self.file.read(DATA_HDR_LEN)
         assert len(h) == DATA_HDR_LEN
-        oid, revid, prev, tloc, vlen, dlen = struct.unpack(DATA_HDR, h)
+        oid, revid, prev, tloc, vlen, dlen, nrefs = struct.unpack(DATA_HDR, h)
         print >> self.dest, "-" * 60
         print >> self.dest, "offset: %d" % pos
         print >> self.dest, "oid: %s" % fmt(oid)
@@ -91,6 +91,7 @@
                   "previous version data offset: %d" % u64(sprevdata)
         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)