Commit 6a1b9de
authored
Mutable in-memory ID tracker without RocksDB (#6150)
* Add initial mutable ID tracker
* Correctly handle duplicate point mappings and deleted flags
* Improve error handling in flush
* Preallocate capacity for pending mappings/versions more intelligently
* Warn or error about missing ID tracker files
* Reformat
* Don't crash if just the last mapping/version entry is corrupt
* Move mapping and point parsing into separate functions
* Extract loading logic into separate functions
* Do not allow partially corrupted ID tracker files for now
* Remove TODOs
* Minor improvements
* Fsync mappings and versions file after writing to it
* Return error when fsync fails1 parent 2e7c67a commit 6a1b9de
2 files changed
Lines changed: 566 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments