Skip to main content

KernelRecovery

Trait KernelRecovery 

Source
pub trait KernelRecovery: Send + Sync {
    // Required methods
    fn recover(&self) -> KernelResult<RecoveryStats>;
    fn checkpoint(&self) -> KernelResult<LogSequenceNumber>;
    fn last_checkpoint_lsn(&self) -> Option<LogSequenceNumber>;
}
Expand description

Recovery operations

Crash recovery and checkpoint management.

Required Methods§

Source

fn recover(&self) -> KernelResult<RecoveryStats>

Perform crash recovery

Returns the number of transactions recovered (committed + aborted)

Source

fn checkpoint(&self) -> KernelResult<LogSequenceNumber>

Create a checkpoint

Source

fn last_checkpoint_lsn(&self) -> Option<LogSequenceNumber>

Get the last checkpoint LSN

Implementors§