Fix rooted accounts cleanup, simplify locking (#12194)

Co-authored-by: Carl Lin <carl@solana.com>
This commit is contained in:
carllin
2020-09-28 16:04:46 -07:00
committed by GitHub
parent 35208c5ee7
commit 06f84c65f1
18 changed files with 758 additions and 399 deletions

View File

@ -1805,7 +1805,7 @@ fn main() {
);
assert!(bank.is_complete());
bank.squash();
bank.clean_accounts();
bank.clean_accounts(true);
bank.update_accounts_hash();
if rehash {
bank.rehash();
@ -1823,7 +1823,7 @@ fn main() {
&bank,
&slot_snapshot_paths,
&temp_dir,
&bank.src.roots(),
bank.src.slot_deltas(&bank.src.roots()),
output_directory,
storages,
CompressionType::Bzip2,