Skip to main content

install_bundle

Function install_bundle 

Source
pub fn install_bundle(
    config: &Config,
    label: &str,
    bytes: &[u8],
    guard: &StateDirectoryLock,
) -> Result<InstallResult>
Expand description

Install an authenticated bundle for label into its configured destination, following the §S5 commit order.

bytes is the complete checked input: read the source once before calling this — everything published (snapshot and configured path) comes from these bytes, never from a re-read of the source path. guard must be the exclusive writer lock for config.storage.state_db; a running server holding that lock makes the caller fail before reaching this function.