when storing detailed debug info on accounts hash, we're ok with > 1 storage (#27617)

This commit is contained in:
Jeff Washington (jwash) 2022-09-07 06:38:57 -07:00 committed by GitHub
parent 6bc04b5e3a
commit acd846b90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -6766,7 +6766,11 @@ impl AccountsDb {
bin_range.start.hash(&mut hasher);
bin_range.end.hash(&mut hasher);
if let Some(sub_storages) = sub_storages {
if sub_storages.len() > 1 {
if sub_storages.len() > 1
&& !config.store_detailed_debug_info_on_failure
{
// Having > 1 appendvecs per slot is not expected. If we have that, we just fail to cache this slot.
// However, if we're just dumping detailed debug info, we don't care, so store anyway.
load_from_cache = false;
break;
}