places::storage

Function run_maintenance_checkpoint

source
pub fn run_maintenance_checkpoint(conn: &PlacesDb) -> Result<()>
Expand description

Run maintenance on the places DB (checkpoint step)

The run_maintenance_*() functions are intended to be run during idle time and will take steps to clean up / shrink the database. They’re split up so that we can time each one in the Kotlin wrapper code (This is needed because we only have access to the Glean API in Kotlin and it supports a stop-watch style API, not recording specific values).