Skip to main content

load_projection_from_storage

Function load_projection_from_storage 

Source
pub fn load_projection_from_storage(
    data_root: &Path,
) -> Result<RecoveryBootstrap, RecoveryBootstrapError>
Expand description

Loads an authoritative projection from storage using snapshot + WAL tail.

This function creates required storage directories, initializes WAL handles, attempts snapshot load, then replays the WAL tail from the snapshot sequence.

ยงErrors

Returns RecoveryBootstrapError variants with the underlying error string for deterministic diagnostics.