Refactor bank_forks_utils::load() and some snapshot logic (#17492) (#17979)

Refactor a few functions that are on the load-from-snapshot path, to facilitate
adding in incremental snapshots more easily.

Additionally, add some tests and doc comments.

(cherry picked from commit 1953543274)

Co-authored-by: Brooks Prumo <brooks@solana.com>
This commit is contained in:
mergify[bot]
2021-06-15 22:03:49 +00:00
committed by GitHub
parent 0c90307677
commit fe5fed1182
3 changed files with 187 additions and 98 deletions

View File

@@ -190,7 +190,7 @@ where
}
}
// Map from AppendVec file name to unpacked file system location
/// Map from AppendVec file name to unpacked file system location
pub type UnpackedAppendVecMap = HashMap<String, PathBuf>;
pub fn unpack_snapshot<A: Read>(