[ZODB-Dev] checkbtrees question.

Tim Peters tim at zope.com
Wed Jul 28 09:12:36 EDT 2004


[Syver Enstad]
> When running checkbtrees.py over my FileStorage file I get:
>
>  total 16864 found 16321
>
> Does this mean there is a problem? How do I find out more?

If that's all the output you got, it didn't find any problems in BTrees.

You would find out more the same way I do:  stare at the code <wink/sigh>.
16864 is the number of distinct oids in your database.  16321 appears to be
the number of distinct objects the code actually found via the peculiar way
it traverses the database.  So there are a few hundred objects in the
database it didn't look at.  I'm not sure how to characterize which those
may be; for example, if an object isn't reachable from the root object
anymore, this code definitely won't find it.  Being more precise than that
would require reverse-engineering the code with more care than I have time
for now.

In any case, if checkbtrees ever finds a damaged BTree, it will be obvious
from the output.  I don't know why the author thought the "total/found"
summary line was interesting.



More information about the ZODB-Dev mailing list