async fn try_advance_database_init_process_until_complete(
    handle: &mut DatabaseHandle<'_>,
    root: &Path,
    wipe_on_error: bool,
    skip_replay_and_seek_instead: bool,
) -> Result<()> {
    loop {
        match try_advance_database_init_process(
            handle,
            root,
            wipe_on_error,
            skip_replay_and_seek_instead,
        )
        .await?
        {
            InitProgress::Unfinished => {}
            InitProgress::Done => {
                return Ok(());
            }
        }
    }
}
/// Try to make as much progress as possible with DB init.
///
/// Returns an error if there was an error along the way (in which case the handle should still be commit to safe
/// the intermediate result).
Try to make as much progress as possible with DB init.
Returns an error if there was an error along the way (in which case the handle should still be commit to safe
the intermediate result).
Try to make as much progress as possible with DB init . Returns an error if there was an error along the way ( in which case the handle should still be commit to safe the intermediate result ) .
async fn try_advance_database_init_process_until_complete(
    handle: &mut DatabaseHandle<'_>,
    root: &Path,
    wipe_on_error: bool,
    skip_replay_and_seek_instead: bool,
) -> Result<()> {
    loop {
        match try_advance_database_init_process(
            handle,
            root,
            wipe_on_error,
            skip_replay_and_seek_instead,
        )
        .await?
        {
            InitProgress::Unfinished => {}
            InitProgress::Done => {
                return Ok(());
            }
        }
    }
}
async fn try_advance_database_init_process_until_complete ( handle : & mut DatabaseHandle < ' _ > , root : & Path , wipe_on_error : bool , skip_replay_and_seek_instead : bool , ) -> Result < ( ) > { loop { match try_advance_database_init_process ( handle , root , wipe_on_error , skip_replay_and_seek_instead , ) . await ? { InitProgress :: Unfinished => { } InitProgress :: Done => { return Ok ( ( ) ) ; } } } }
Try to make as much progress as possible with DB init.
Try to make as much progress as possible with DB init .
handle
&mut DatabaseHandle<'_>
root
&Path
wipe_on_error
bool
skip_replay_and_seek_instead
bool
handle
&mut DatabaseHandle<'_>
root
&Path
wipe_on_error
bool
skip_replay_and_seek_instead
bool