From acd846b90eeabb960c43151cb7adb503c6f47a92 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 7 Sep 2022 06:38:57 -0700 Subject: [PATCH] when storing detailed debug info on accounts hash, we're ok with > 1 storage (#27617) --- runtime/src/accounts_db.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index e45d277ed..12e1a8fc1 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -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; }