Record the previous generation in the index selector
CURRENT moves to schema 3 with an explicit previous file name. Restore accepts schemas 1-3 (migrating 2), validates the recorded name as a plain file name and recovers from it when the current generation is missing. Registered index tests cover the migration, recovery through a renamed previous generation and rejection of an escaping name.
This commit is contained in:
1 parent
4b534c61ae
commit
75ff3d4a9d
3 files changed
+57
-5
No files matched your search
@@ -61,6 +61,17 @@ start coordinate only, so ranges are zero-width until an end is available.
|
||||
LSP adapters and index/rename/debugging integration remain open. `vbs test`
|
||||
passed all 17 native suites; CMake passed the reflection and trace suites.
|
||||
|
||||
## December 6 index selector schema 3
|
||||
|
||||
`CURRENT` is now schema 3 (`{"schema":3,"file":...,"previous":...}`), so the
|
||||
recovery generation name is recorded rather than hardcoded. Restore still
|
||||
accepts schema 1 (bare name) and schema 2 (migrating it to 3), validates that the
|
||||
recorded previous name is a plain file name (rejecting separators and `..`), and
|
||||
recovers from it when the current file is missing. Registered `vls_index_tests`
|
||||
grew to 29 cases, including recovery through a renamed previous generation and
|
||||
rejection of an escaping name. All 18 native suites and all 18 CMake tests
|
||||
passed.
|
||||
|
||||
## December 5 persistent index snapshot migration
|
||||
|
||||
The symbol-index snapshot is now schema 2 with a canonical payload digest
|
||||
|
||||
Reference in new issue
Block a user