Skip to main content

Module tail_validation

Module tail_validation 

Source
Expand description

Shared strict WAL framed-record tail validation.

This module defines the single source of truth for classifying trailing WAL corruption across writer bootstrap, reader iteration, and replay paths.

Structs§

LenientValidationResult
Result of lenient WAL tail validation.
ParsedWalRecord
A decoded framed WAL record returned by the shared parser.
WalCorruption
Typed WAL corruption details used by all restart paths.
WalValidationSummary
Summary emitted when WAL validation succeeds with no corruption.

Enums§

WalCorruptionReasonCode
Stable, machine-readable corruption reason codes for WAL tail validation.

Functions§

parse_record_at
Parses one framed record at offset.
validate_tail_lenient
Leniently validates a WAL byte stream, reporting trailing corruption without failing.
validate_tail_strict
Strictly validates an entire WAL byte stream.