[ZODB-Dev] Weird Error Message
Jim Fulton
jim@zope.com
Thu, 13 Sep 2001 10:56:07 -0400
Steve Alexander wrote:
>
> Jim Fulton wrote:
> >
>
> >>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.
> >>
> >
> > Yes, you can always delete the index. Zope will recreate the index
> > on a pack or when a FileStorage is explicitly closed. (e.g. on Zope
> > shutdown).
>
> In the past, I've been quite glad of the existence of the index. I've
> restored almost all of the data from a seriously corrupted FileStorage
> Data.fs where the index couldn't be recreated by using the index file
> instead. The corruption was caused in the first place by a power failure.
Hm. This is a *really* good point. I bet a much better recovery
tool could be written to exploit this.
Anyone wanna take a crack at 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