Skip to main content

read_device_id_in_use

Function read_device_id_in_use 

Source
pub async fn read_device_id_in_use(
    path: PathBuf,
    bugs: &BugSinkRef,
) -> Result<Option<Slot>, DbError>
Expand description

The slot a store’s database recorded when it stopped because another installation uses its device id (§19.3), read in place and read-only on a blocking thread, never opened as a store. A reset reads it before it records its replacement. A database SQLite reports damaged is DamagedDatabase. Like discarded_operations, it reads only coven’s table. A caller that stops waiting leaves the read to finish, and its panic goes to bugs (E15).