Skip to main content

start_history_compact_migration

Function start_history_compact_migration 

Source
fn start_history_compact_migration(
    config: &Arc<ConfigState>,
    mstore: &Arc<Store>,
    filestore: &Arc<FileStore>,
)
Expand description

The reduce pass of the compact-form upgrade (spec section 9): a minute after start, then hourly, and at once (within a minute) when history:compactmigrate or its dry run is turned on. Each zone is rewritten beside its old file and swapped in one transaction; a zone that fails a check is left as it was.