From 97fc64dd0cbc932496ead63b6055b517778cfff0 Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Mon, 13 Sep 2021 18:08:32 -0500 Subject: [PATCH] Call exhaustively_free_unused_resource() instead (#19847) --- ledger/src/blockstore_processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 716162797e..142e0e1c4c 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -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,