[ZODB-Dev] Corrupt BTree Problem
mattkoz2003
mattkoz2003 at yahoo.com
Wed Jul 7 08:53:44 EDT 2004
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. I haven't
been able to recatalog or export this to a zexp file for a long time
(i need to export it). I don't care about the data in that key --
I would be happy to just delete it all together. I have tried this:
1. del self.data.keys[1063958497] (doesn't work)
2. del self.data[1063958497] (returns key error)
3. (the following returns key error)
for id in self.data.keys():
try:
self.get_wrapped_posting(id)
except:
del self.data[id]
More information about the ZODB-Dev
mailing list