Skip to main content

discarded_operations

Function discarded_operations 

Source
pub async fn discarded_operations(
    path: PathBuf,
    bugs: &BugSinkRef,
) -> Result<Vec<OperationRecord>, DbError>
Expand description

The operation journal of a database a device reset discarded (§19.3), read in place and read-only on a blocking thread, never opened as a store. A journal SQLite reports damaged, or whose records don’t decode, is DamagedDatabase. Like read_store_name, it reads only coven’s table and needs none of the app’s collations or functions. A caller that stops waiting leaves the read to finish, and its panic goes to bugs (E15).