Skip to main content

Module replica

Module replica 

Source
Expand description

Replica-side replication: connects to primary, consumes WAL records.

Structs§

BootstrapHandle
Active bootstrap handle. Call BootstrapHandle::checkpoint periodically during catchup. Call BootstrapHandle::complete on success.
ReplicaBootstrapper
Manages bootstrap lifecycle using AdminIntentLog for crash-resumability.
ReplicaReplication
Replica replication state.
ResumePoint
Resume point recovered from a previously checkpointed bootstrap intent.
StagedBaseBackupChunk
Result of staging one basebackup response from replication_snapshot.

Enums§

ReplicaBaseBackupError

Functions§

recover_staged_basebackup_chunks
stage_basebackup_snapshot_chunk
Stage the basebackup chunk carried by one replication_snapshot response.