
IndexRecovery
- Namespace
- Rowles.LeanCorpus.Index
- Assembly
- Rowles.LeanCorpus.dll
Lightweight crash recovery for LeanCorpus indices. On startup: validates the latest commit, falls back to prior generations on corruption, and cleans up orphaned segment files and temp files.
public static class IndexRecovery
- Inheritance
-
IndexRecovery
RecoverLatestCommit(string, bool, CodecCatalog?)
Attempts to load the latest valid commit from the index directory. Tries generations from highest to lowest. Returns null if no valid commit exists.