[ZODB-Dev] Corrupt BTree Problem
Tim Peters
tim at zope.com
Wed Jul 7 09:06:12 EDT 2004
[mattkoz2003]
> Somehow, along the way a BTree has become corrupt. I don't know how/why
> - but I need to fix it. It has been broken for a while (since pre-2.6).
> I am now running 2.7.1 w/ ZEO (included with 2.7.1).
>
> Here is the problem. When I do this:
>
> for key in self.data.keys():
> postings.append(key)
> return str(postings)
>
> it returns all the keys, including 1063958497. However, when I do this:
> return self.data[1063958497], I get a KeyError.
...
The section "BTree Diagnostic Tools" at
http://zope.org/Wikis/ZODB/FrontPage/guide/node6.html
shows a simple recipe that should be able to repair this tree.
More information about the ZODB-Dev
mailing list