Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
add an assert for a debug feature to avoid wasted time
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Aug 17, 2022
1 parent c1111fa commit 104e991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6890,6 +6890,8 @@ 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 104e991

Please sign in to comment.