[Zope-Checkins] CVS: ZODB3/ZODB - fsdump.py:1.9

Jeremy Hylton jeremy at zope.com
Tue Oct 14 12:31:58 EDT 2003


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv7604

Modified Files:
	fsdump.py 
Log Message:
Switch lines that size and offset appear on.

If you grep for just the Trans lines, it's probably more useful to
have the size than the offset.  Maybe.


=== ZODB3/ZODB/fsdump.py 1.8 => 1.9 ===
--- ZODB3/ZODB/fsdump.py:1.8	Tue Oct 14 12:29:05 2003
+++ ZODB3/ZODB/fsdump.py	Tue Oct 14 12:31:57 2003
@@ -41,15 +41,14 @@
     iter = FileIterator(path)
     for trans in iter:
         if with_offset:
-            print >> file, ("Trans #%05d tid=%016x time=%s offset=%d"
+            print >> file, ("Trans #%05d tid=%016x time=%s size=%d"
                             % (i, u64(trans.tid), str(TimeStamp(trans.tid)),
-                               trans._pos))
+                               trans._tend - trans._pos))
         else:
             print >> file, "Trans #%05d tid=%016x time=%s" % \
                   (i, u64(trans.tid), str(TimeStamp(trans.tid)))
-        print >> file, "\tsize=%d status=%s user=%s description=%s" % \
-              (trans._tend - trans._tpos, `trans.status`, trans.user,
-               trans.description)
+        print >> file, "\toffset=%d status=%s user=%s description=%s" % \
+              (trans._tpos, `trans.status`, trans.user, trans.description)
         j = 0
         tsize = 0
         for rec in trans:




More information about the Zope-Checkins mailing list