Function solana_runtime::snapshot_utils::unarchive_snapshot
source · fn unarchive_snapshot<P, Q>(
bank_snapshots_dir: P,
unpacked_snapshots_dir_prefix: &'static str,
snapshot_archive_path: Q,
measure_name: &'static str,
account_paths: &[PathBuf],
archive_format: ArchiveFormat,
parallel_divisions: usize,
next_append_vec_id: Arc<AtomicAppendVecId>
) -> Result<UnarchivedSnapshot>where
P: AsRef<Path>,
Q: AsRef<Path>,
Expand description
Perform the common tasks when unarchiving a snapshot. Handles creating the temporary directories, untaring, reading the version file, and then returning those fields plus the rebuilt storage