Auxiliary record
An auxiliary record is the other kind of payload in a framed record. It is written by the transaction layer next to commit records.
Layout
Section titled “Layout”| Field | Encoding | Meaning |
|---|---|---|
| marker | 8 bytes, all 0x00 |
zero where a commit has its timestamp |
aux_kind |
u8 | 1 = intent, 2 = cancel |
id |
u64 LE | intent id |
| body | bytes | for an intent, the opaque intent payload. For a cancel, empty |
The eight zero bytes distinguish an auxiliary record from a commit record, because a commit ts is never 0.
Conventions
Section titled “Conventions”The “exactly 8 trailing bytes” rule for the resolves field of a commit and the zero-timestamp marker are positional conventions with no version byte. New record kinds must be added as new auxiliary kinds (SPEC V461).
Replay
Section titled “Replay”Intents are tracked until a commit resolves them through its resolves id, or a cancel record cancels them. See Recovery.