Skip to content

Commit

Permalink
move hash stat to correct level for ahv to work (#26649)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Jul 18, 2022
1 parent 1c08f83 commit c4d2c95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6598,7 +6598,6 @@ impl AccountsDb {
slot: Slot,
config: &CalcAccountsHashConfig<'_>,
) -> Result<(Hash, u64), BankHashVerificationError> {
let _guard = self.active_stats.activate(ActiveStatItem::Hash);
if !use_index {
let mut collect_time = Measure::start("collect");
let (combined_maps, slots) = self.get_snapshot_storages(slot, None, config.ancestors);
Expand Down Expand Up @@ -6797,6 +6796,8 @@ impl AccountsDb {
storages: &SortedStorages<'_>,
mut stats: HashStats,
) -> Result<(Hash, u64), BankHashVerificationError> {
let _guard = self.active_stats.activate(ActiveStatItem::Hash);

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
1 change: 0 additions & 1 deletion runtime/src/active_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ pub struct ActiveStats {
pub enum ActiveStatItem {
Clean,
Shrink,
#[allow(dead_code)]
SquashAncient,
Hash,
Flush,
Expand Down

0 comments on commit c4d2c95

Please sign in to comment.