Remove filter_snapshot_storages_for_incremental_snapshot() (#19349)

Now that we can get just the subset of snapshot storages we want, the extra
filtering afterwards is redundant.
This commit is contained in:
Brooks Prumo
2021-08-23 09:45:29 -05:00
committed by GitHub
parent 86ef147ec2
commit 1a4bede918
2 changed files with 2 additions and 26 deletions

View File

@ -799,14 +799,7 @@ mod tests {
"did not find bank snapshot with this path",
)
})?;
let storages = {
let mut storages = bank.get_snapshot_storages(Some(incremental_snapshot_base_slot));
snapshot_utils::filter_snapshot_storages_for_incremental_snapshot(
&mut storages,
incremental_snapshot_base_slot,
);
storages
};
let storages = bank.get_snapshot_storages(Some(incremental_snapshot_base_slot));
snapshot_utils::package_process_and_archive_incremental_snapshot(
bank,
incremental_snapshot_base_slot,