Commit 4f8cc29b authored by Jeremy Hylton's avatar Jeremy Hylton

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

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