Skip to main content

TEMPORAL_INDEX_ORIGIN_KEY

Constant TEMPORAL_INDEX_ORIGIN_KEY 

Source
pub const TEMPORAL_INDEX_ORIGIN_KEY: &[u8] = b"temporal_index_origin";
Expand description

The other reserved key in TEMPORAL_INDEX_META_CF: the version of the tick-axis ORIGIN an epoch was stamped under.

Same shape and reason as geo’s liveness marker ([GEO_INDEX_LIVENESS_KEY]): moving the origin (B56 moved it 306 days) invalidates every posting key and every stored begin/end pair, but the epoch itself still reads stamped — a trusted index whose postings sit where no query looks. So the version rides beside the epoch, is written by set_temporal_index_epoch, and temporal_index_epoch reports None (untrusted) on mismatch, which makes startup’s auto-rebuild re-cover the store instead of trusting it.