Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Removes unnecessary new_sized() AccountsDb ctor #34504

Merged

Conversation

brooksprumo
Copy link
Contributor

Problem

There are a lot of AccountsDb constructors. This makes it hard for me to remember what each one uniquely does. Also, I'd like to remove all TempDirs from inside AccountsDb, and instead have a common harness that creates them as needed for tests/benches/etc. The abundance of AccountsDb/Accounts/Bank constructors makes this much harder.

Summary of Changes

Removes AccountsDb::new_sized() and updates callers.

@brooksprumo brooksprumo self-assigned this Dec 18, 2023
@brooksprumo brooksprumo marked this pull request as ready for review December 18, 2023 16:04
@brooksprumo brooksprumo requested a review from steviez December 18, 2023 16:04
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #34504 (58967c5) into master (4181ea4) will increase coverage by 0.0%.
Report is 1 commits behind head on master.
The diff coverage is 80.0%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34504   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         820      820           
  Lines      220790   220791    +1     
=======================================
+ Hits       180679   180681    +2     
+ Misses      40111    40110    -1     

@brooksprumo brooksprumo merged commit e858a5a into solana-labs:master Dec 18, 2023
19 checks passed
@brooksprumo brooksprumo deleted the ctor/accounts-db/new_sized branch December 18, 2023 21:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants