Skip to content

Commit 6a1b9de

Browse files
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 fails
1 parent 2e7c67a commit 6a1b9de

2 files changed

Lines changed: 566 additions & 0 deletions

File tree

lib/segment/src/id_tracker/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pub mod compressed;
22
pub mod id_tracker_base;
33
pub mod immutable_id_tracker;
44
pub mod in_memory_id_tracker;
5+
pub mod mutable_id_tracker;
56
pub mod point_mappings;
67
pub mod simple_id_tracker;
78

0 commit comments

Comments
 (0)