[ZODB-Dev] Preliminary notes from fixing a bad data.fs

ethan fremen lists at mindlace.net
Mon Jan 10 09:05:09 EST 2005


Toby Dickenson wrote:

> That would cause packing to remove all objects that are only reachable via 
> that corrupt object. That might be what you want in this case, but in the 
> general case that would be a dangerous behaviour. Many of those objects might 
> be valuable.

If you can't unpickle the object, how do you know what objects it can reach?

I don't know of any way, aside from visual inspection of whatever binary 
data can be recovered.

Right now, not being able to pack is a dangerous behaviour. I don't want 
to correct one problem by causing a worse one, but it seems to me like 
some sort of logging of what had to be done to make the pack succeed 
would be appropriate in this circumstance. The old Data.fs is still 
around after a pack, so the user can dig through it for the broken object.

~ethan fremen


More information about the ZODB-Dev mailing list