Commit 014108d5 authored by Jeremy Hylton's avatar Jeremy Hylton

Quick fix for a len() of unsized object problem.

Not sure why this happens.
parent 6c70bbcb
...@@ -74,6 +74,10 @@ def fsdump(path, file=None, with_offset=1): ...@@ -74,6 +74,10 @@ def fsdump(path, file=None, with_offset=1):
bp = "" bp = ""
if rec.data_txn: if rec.data_txn:
size = 8 + len(rec.version) size = 8 + len(rec.version)
else:
if rec.data is None:
# XXX why is rec.data None and rec.data_txn False?
size = len(rec.version)
else: else:
size = len(rec.data) + len(rec.version) size = len(rec.data) + len(rec.version)
if rec.version: if rec.version:
......
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