[ZODB-Dev] Weird Error Message

Jim Fulton jim@zope.com
Thu, 13 Sep 2001 10:57:39 -0400


Jeremy Hylton wrote:
> 
> >>>>> "JF" == Jim Fulton <jim@zope.com> writes:
> 
>   >> Thinking out load: Since the index file is just an optimization,
>   >> I wonder if we should catch errors like these and fall back to
>   >> recreating the index.
> 
>   JF> Yes, you can always delete the index. Zope will recreate the
>   JF> index on a pack or when a FileStorage is explicitly
>   JF> closed. (e.g. on Zope shutdown).
> 
> I've modified FileStorage in CVS so that it doesn't fail on startup
> when it finds a corrupted .index file and doesn't require the operator
> to delete the file in order to start the storage.  It just detects the
> error and recreates the index as if it weren't there to begin with.

Given Steve's observation, we should probably rename, rather than delete it.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org