enable accounts hash caching if store_detailed_debug_info_on_failure (#26864)

This commit is contained in:
Jeff Washington (jwash) 2022-08-01 14:27:20 -05:00 committed by GitHub
parent f6e4f76dac
commit 050c66f197
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6496,7 +6496,8 @@ impl AccountsDb {
return scanner.scanning_complete();
}
let should_cache_hash_data = CalcAccountsHashConfig::get_should_cache_hash_data();
let should_cache_hash_data = CalcAccountsHashConfig::get_should_cache_hash_data()
|| config.store_detailed_debug_info_on_failure;
// if we're using the write cache, then we can't rely on cached append vecs since the append vecs may not include every account
// Single cached slots get cached and full chunks get cached.