Skip to main content

Module index_pack

Module index_pack 

Source
Expand description

Index-pack and thin-pack handling.

Structs§

IngestPackOptions
Options controlling how a received pack is ingested.
IngestedPack
Result of ingesting a received pack into an object database.
ObjectKindCounts
Per-type object counts for a pack, tallied while it is indexed.

Functions§

build_pack_index_records
Build index records for pack, using up to parallelism worker threads.
build_pack_index_records_with_progress
Like build_pack_index_records, emitting ProgressPhase::IndexingObjects then ProgressPhase::ResolvingDeltas on progress when provided.
ingest_received_pack
Ingest a pack received from fetch/clone by installing it under objects/pack/.
ingest_received_pack_path
Ingest a pack already written to disk (streaming fetch/clone receive path).
ingest_received_pack_path_with_progress
Like ingest_received_pack_path, reporting pack indexing progress on progress when set.
ingest_received_pack_with_progress
Like ingest_received_pack, reporting pack indexing progress on progress when set.
install_pack_bytes
Write pack into odb’s objects/pack/ directory with a v2 index.
install_pack_bytes_with_progress
Like install_pack_bytes, reporting pack indexing progress on progress when set.
install_pack_path
Install a pack from pack_path into odb’s objects/pack/ directory.
install_pack_path_with_progress
Like install_pack_path, reporting pack indexing progress on progress when set.
last_resolved_ingest_threads_for_tests
Last resolved worker count from pack ingest while recording is enabled.
set_ingest_thread_recording_for_tests
Enable recording of resolved index-pack worker counts (integration tests only).