Commit b427cc0f authored by Tim Peters's avatar Tim Peters

Correction to computation of txn size -- subtract the start offset of the

transaction, not the position of the first record.
parent 4f8cc29b
...@@ -43,7 +43,7 @@ def fsdump(path, file=None, with_offset=1): ...@@ -43,7 +43,7 @@ def fsdump(path, file=None, with_offset=1):
if with_offset: if with_offset:
print >> file, ("Trans #%05d tid=%016x time=%s size=%d" print >> file, ("Trans #%05d tid=%016x time=%s size=%d"
% (i, u64(trans.tid), str(TimeStamp(trans.tid)), % (i, u64(trans.tid), str(TimeStamp(trans.tid)),
trans._tend - trans._pos)) trans._tend - trans._tpos))
else: else:
print >> file, "Trans #%05d tid=%016x time=%s" % \ print >> file, "Trans #%05d tid=%016x time=%s" % \
(i, u64(trans.tid), str(TimeStamp(trans.tid))) (i, u64(trans.tid), str(TimeStamp(trans.tid)))
......
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