Skip to main content

Module header

Module header 

Source
Expand description

WAL record header: fixed 54-byte prefix + constants.

Structs§

RecordHeader
WAL record header (fixed 54 bytes).

Constants§

ENCRYPTED_FLAG
Bit 14 in record_type signals the payload is AES-256-GCM encrypted. Separate from bit 15 (required flag). Both bits keep their positions; the type is now u32 so the constants are widened accordingly.
HEADER_SIZE
Size of the record header in bytes.
MAX_WAL_PAYLOAD_SIZE
Maximum WAL record payload size (64 MiB). Distinct from cluster RPC’s limit.
REQUIRED_FLAG
Bit 15: required-flag. Records with this bit set and an unknown type must not be silently skipped.
WAL_FORMAT_VERSION
Current WAL format version.
WAL_MAGIC
Magic number identifying a NodeDB WAL record.