[ZODB-Dev] Weird Error Message

Jeremy Hylton jeremy@zope.com
Wed, 12 Sep 2001 17:40:58 -0400 (EDT)


>>>>> "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.

Jeremy