Skip to main content

replay_record_decision

Function replay_record_decision 

Source
pub fn replay_record_decision(
    batch_base: i64,
    record_delta: i32,
    from: i64,
    end: i64,
    control_batch: bool,
    replay_control: bool,
) -> ReplayRecordDecision
Expand description

Decide whether controller recovery replays one decoded metadata record, and at which absolute offset.

A negative delta is malformed and skipped. Because an admitted offset is below end, it is always representable, so no overflow case needs a rule of its own.