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

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.
This commit is contained in:
Brooks Prumo
2021-05-27 12:00:27 -05:00
committed by GitHub
parent 983828a2a9
commit 1953543274
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>(