[ZODB-Dev] Corrupt BTree Problem

Christian Robottom Reis kiko at async.com.br
Wed Jul 7 10:47:16 EDT 2004


On Wed, Jul 07, 2004 at 10:45:39AM -0400, Tim Peters wrote:
> [mattkoz2003]
> > That simple recipe wiped out my whole BTree...  Down to the server room
> > to load up a tape now.  Any other thoughts?
> 
> What, exactly, did you do?
> 
> You earlier said that
> 
> for key in self.data.keys():
>     postings.append(key)
> 
> returned all the keys.  Copying a BTree (as in the recipe) does the same
> thing under the covers.  Please show the exact code you used.

Note also that you should avoid running a commit() until you've verified
the modifications to your BTree are acceptable. A simple len() would
suffice to check if the new one is as large as you expect.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331


More information about the ZODB-Dev mailing list