Skip to content

Commit

Permalink
when storing detailed debug info on accounts hash, we're ok with > 1 …
Browse files Browse the repository at this point in the history
…storage (solana-labs#27617)
  • Loading branch information
jeffwashington authored Sep 7, 2022
1 parent 6bc04b5 commit acd846b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit acd846b

Please sign in to comment.