Skip to main content

carry_forward_or_stop

Function carry_forward_or_stop 

Source
fn carry_forward_or_stop(
    db_dir: &Path,
    code_version: &str,
) -> Result<bool, String>
Expand description

The copy-forward of the previous version’s data before this version’s first start: Ok(true) when it was copied, Ok(false) when there was nothing to copy (a first start, or this version already has data: a fresh start on purpose), and Err with the message to stop with when an older version has data and copying it failed.