Skip to main content

rebuild_temporal_index_storage

Function rebuild_temporal_index_storage 

Source
pub fn rebuild_temporal_index_storage(
    storage: &Storage,
    stats: &Mutex<ShardStats>,
    config: DyadicCovererConfig,
) -> Result<u64, PartitionError>
Expand description

The temporal index rebuild walk over one already-open O store: wipe the index CF, collect the per-quad-live temporal terms (a term stays when ANY referencing quad’s own-latest version is a Put — deletes are never mirrored to postings, so the walk after the wipe is the GC of dead terms), derive postings under config, apply them, replace the histogram with an exact cut, and stamp epoch = max commit_ts over temporal-carrying rows (equal, never +1 — the epoch derives from the indexed data). Shared by the partition’s RPC-executed rebuild, the standalone startup path, and the offline CLI.