Removes old accounts hash cache dir (#32604)

This commit is contained in:
Brooks 2023-07-24 17:34:56 -04:00 committed by GitHub
parent ba7d892ebb
commit 36b37221f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -586,6 +586,12 @@ impl Validator {
timer.stop();
info!("Cleaning orphaned account snapshot directories done. {timer}");
// The accounts hash cache dir was renamed, so cleanup the old dir if it exists.
let old_accounts_hash_cache_dir = ledger_path.join("calculate_accounts_hash_cache");
if old_accounts_hash_cache_dir.exists() {
snapshot_utils::move_and_async_delete_path(old_accounts_hash_cache_dir);
}
{
let exit = exit.clone();
config