Skip to content

The payloads of consecutive blocks form a byte stream addressed by stream_offset. Records are framed inside that stream and may span blocks and segments.

Each group-commit batch starts in a fresh block. A batch’s last block may be partly used. The next batch continues at the next block, with stream_offset equal to the previous stream_offset + used.

Offset Size Type Meaning
0 4 u32 LE len, at most 16 MiB
4 4 u32 LE crc, CRC32C of the payload
8 len bytes payload

A record’s LSN is the stream offset of its header. Its end is lsn + 8 + len.

The payload is a commit record or an auxiliary record. A CRC mismatch found at replay is Corrupt, not a silent stop, see Recovery.