c834d2fc95
blockstore_processor::process_blockstore_from_root() starts with a BankForks that contains exactly one Bank. The function grabs an Arc of this initial Bank, and does some logging and initial setup before processing more slots in load_frozen_forks(). process_blockstore_from_root() holds that Arc until it returns. This increases the ref count and prevents the initial Bank from getting cleaned up in a timely manner if load_frozen_forks() prunes that initial Bank from BankForks. This change extracts the needed information from the Arc<Bank>, and drops the Arc so that the Bank can be dropped in a timely manner. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
build.rs |