Skip to main content

event_log_cursor

Function event_log_cursor 

Source
pub fn event_log_cursor(events_dir: &Path) -> Result<(usize, Option<String>)>
Expand description

Return the current event-log cursor as (total_byte_len, last_event_hash).

This scans shard lines in replay order, mirroring the full rebuild parser so callers can compare projection cursor metadata against the actual log end.

ยงErrors

Returns an error if shard replay or event parsing fails.