Skip to content

Commit

Permalink
add an assert for a debug feature to avoid wasted time (#27210)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Aug 18, 2022
1 parent 7569f8e commit 7720b48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6895,6 +6895,11 @@ impl AccountsDb {

stats.oldest_root = storages.range().start;

assert!(
!(config.store_detailed_debug_info_on_failure && config.use_write_cache),
"cannot accurately capture all data for debugging if accounts cache is being used"
);

self.mark_old_slots_as_dirty(storages, Some(config.epoch_schedule.slots_per_epoch));

let (num_hash_scan_passes, bins_per_pass) = Self::bins_per_pass(self.num_hash_scan_passes);
Expand Down

0 comments on commit 7720b48

Please sign in to comment.