Expand description
WAL record header: fixed 54-byte prefix + constants.
Structs§
- Record
Header - WAL record header (fixed 54 bytes).
Constants§
- ENCRYPTED_
FLAG - Bit 14 in
record_typesignals 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.