Skip to content

A database last opened by an old version can fail to open with 'database disk image is malformed' #522

Description

@kevintseng

What happens

A small database last opened by a version before 4.2.11 (or one holding Thai, Lao, Khmer or similar text indexed by an older build) fails every open after upgrading with database disk image is malformed. The database is not corrupt: an upgrade step removes old keyword-index rows using the new text segmentation before the index is rebuilt. Every surface (hooks, MCP, CLI, reindex --fts) fails the same way, so there is no in-product way out.

Steps

  1. Take a small database written by an older build with CJK or Thai text and no title backfill yet.
  2. Open it with 4.10.11.
  3. memesh fails to start with database disk image is malformed, every time.

Expected

Upgrading never makes a readable database unopenable; the keyword index is rebuilt before any step depends on it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageNot yet judged — the default entry point for a new issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions