mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-31 06:52:49 +00:00
Fixes #2589: incremental analyze intermittently crashed with "FTS index 'file_fts' is inconsistent: term is missing during delete" after markdown-only commits, and --repair-fts also failed in that state. deleteNodesForFiles' batched DETACH DELETE ran against tables that still carried the FTS index built at the end of the PREVIOUS analyze run -- createSearchFTSIndexes only drops+rebuilds every index in Phase 3, well after that delete already ran. LadybugDB's FTS extension is not proven to survive DML against an indexed table (its own docs never demonstrate the sequence). Call the new dropSearchFTSIndexes() up front in the non-escalated incremental branch, before deleteNodesForFiles -- Phase 3 still rebuilds every index from the final row set regardless. New end-to-end test drives a real runFullAnalysis full+incremental cycle and confirms it fails without this change (file_fts and 50 sibling indexes still present at delete time) and passes with it. |
||
|---|---|---|
| .. | ||
| augmentation | ||
| embeddings | ||
| graph | ||
| group | ||
| incremental | ||
| ingestion | ||
| lbug | ||
| platform | ||
| search | ||
| tree-sitter | ||
| wiki | ||
| analysis-features.ts | ||
| analyzer-identity.ts | ||
| embedding-mode.ts | ||
| git-staleness.ts | ||
| index-freshness.ts | ||
| logger.ts | ||
| run-analyze.ts | ||