Call exhaustively_free_unused_resource() instead (#19847)

This commit is contained in:
Brooks Prumo 2021-09-13 18:08:32 -05:00 committed by GitHub
parent 3071c4caad
commit 97fc64dd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1194,8 +1194,8 @@ fn load_frozen_forks(
) {
info!("Taking snapshot of new root bank that has crossed the full snapshot interval! slot: {}", *root);
*last_full_snapshot_slot = Some(*root);
new_root_bank.force_flush_accounts_cache();
new_root_bank.clean_accounts(true, true, *last_full_snapshot_slot);
new_root_bank.exhaustively_free_unused_resource(*last_full_snapshot_slot);
last_free = Instant::now();
new_root_bank.update_accounts_hash_with_index_option(
snapshot_config.accounts_hash_use_index,
snapshot_config.accounts_hash_debug_verify,