AppendVec cleanup: remove dead code, rename non-idiomatic "new" function

This commit is contained in:
Michael Vines
2021-03-10 11:26:37 -08:00
parent 1135ffd595
commit 65dd177601
5 changed files with 10 additions and 31 deletions

View File

@@ -271,11 +271,10 @@ pub fn archive_snapshot_package(snapshot_package: &AccountsPackage) -> Result<()
for storage in snapshot_package.storages.iter().flatten() {
storage.flush()?;
let storage_path = storage.get_path();
let output_path =
staging_accounts_dir.join(crate::append_vec::AppendVec::new_relative_path(
storage.slot(),
storage.append_vec_id(),
));
let output_path = staging_accounts_dir.join(crate::append_vec::AppendVec::file_name(
storage.slot(),
storage.append_vec_id(),
));
// `storage_path` - The file path where the AppendVec itself is located
// `output_path` - The file path where the AppendVec will be placed in the staging directory.