Skip to main content

Module op_record

Module op_record 

Source
Expand description

Versioned operation-record schema.

Structs§

IsolationPrecondition
The oplog generation and logical keys a transaction observed before apply.
OpBatch
Group of operations recorded together.
OpEntry
Entry in the operation log.
ThreadUpdateSnapshots
Optional ThreadManager record snapshots captured around a [ThreadUpdate].

Enums§

ConditionalCommitOutcome
Result of an exact-once append guarded by an isolation precondition.
ConflictResolutionMode
How a conflict was resolved.
IsolationKey
Logical key used by conditional transaction commits to detect intervening same-thread changes.
OpRecord
Record of an operation that can be undone.
RecordedHead
A HEAD value captured in an operation record.
RedactionUndoClass
How a record participates in undo’s redaction-safety preflight.

Constants§

CURRENT_OP_RECORD_SCHEMA_VERSION
OP_VERB_CATALOG
Every (verb, is_checkpoint) pair the vocabulary contains, in variant-declaration order. Generated from the same catalog as OpRecord::verb, so it tracks the variant set with no drift. A verb shared by several variants appears once per variant; dedup at the use site (see OpRecord::verbs).

Functions§

decode_current_record
encode_current_record
is_transaction_commit
True when record is the atomic transaction commit marker.
is_transaction_commit_for
True when record is the atomic transaction commit marker for transaction_id.
isolation_keys_for_record
The logical isolation keys touched by one committed record.
validate_op_record_schema_version