Skip to main content

abort_offline_import

Function abort_offline_import 

Source
fn abort_offline_import(
    stores: &OfflineStores,
    staging: &RegistryStaging,
    write_err: DevError,
) -> DevError
Expand description

Flush finished chunks and ingest their renamed registry runs, then return write_err. Hexastore compaction and the epoch stamp are skipped: this import did not finish.

Flush comes first so --disable-wal does not drop the finished chunks’ memtables when this function returns and the stores are closed. If the registry ingest fails, the renamed runs stay on disk and the next registry open tries again.