Commit fb169e82 authored by Jeremy Hylton's avatar Jeremy Hylton

Print backpointer if its exists.

parent cdb5206c
...@@ -64,8 +64,14 @@ def fsdump(path, file=None, with_offset=1): ...@@ -64,8 +64,14 @@ def fsdump(path, file=None, with_offset=1):
version = "version=%s " % rec.version version = "version=%s " % rec.version
else: else:
version = '' version = ''
print >> file, " data #%05d oid=%016x %sclass=%s" % \ if rec.data_txn:
(j, U64(rec.oid), version, fullclass) # XXX It would be nice to print the transaction number
# (i) but it would be too expensive to keep track of.
bp = "bp=%016x" % U64(rec.data_txn)
else:
bp = ""
print >> file, " data #%05d oid=%016x %sclass=%s %s" % \
(j, U64(rec.oid), version, fullclass, bp)
j += 1 j += 1
print >> file print >> file
i += 1 i += 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment