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
......@@ -75,7 +75,11 @@ def fsdump(path, file=None, with_offset=1):
if rec.data_txn:
size = 8 + len(rec.version)
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:
size += DATA_VERSION_HDR_LEN
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