Skip to main content

restore_indexes

Function restore_indexes 

Source
pub fn restore_indexes(
    db_path: &Path,
    db_node_count: u64,
) -> Result<(KindIndex, NameIndex), IndexPersistenceError>
Expand description

Restore the kind and name indexes from a sidecar file

§Arguments

  • db_path - Path to the main database file
  • db_node_count - Node count from DB header (for staleness validation)

§Returns

Ok((KindIndex, NameIndex)) if restoration succeeded, Err otherwise