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

Toby Dickenson tdickenson at devmail.geminidataloggers.co.uk
Mon Jan 10 04:48:50 EST 2005


On Friday 07 January 2005 21:10, ethan fremen wrote:
> OK, so I think I've finally gone through and un-wedged this Data.fs.
> 
> My first and foremost question is: what is the value of dying cold on a
> pack if an object is unpickleable? I modified pack.py to just return an
> empty list if, when searching for references, it was unable to pickle
> instead of dying- i.e. when it calls referencesf.

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.

-- 
Toby Dickenson


More information about the ZODB-Dev mailing list