From 255ef66a27ad626199230f369d8c3e8afbb45bbf Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Wed, 13 Apr 2022 17:43:33 -0500 Subject: [PATCH] move feature activation log to correct fn for hash (#24326) --- runtime/src/accounts_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 944e8340eb..9250043791 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -5533,6 +5533,7 @@ 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); @@ -5576,7 +5577,6 @@ impl AccountsDb { config: CalcAccountsHashConfig<'_>, expected_capitalization: Option, ) -> Result<(Hash, u64), BankHashVerificationError> { - let _guard = self.active_stats.activate(ActiveStatItem::Hash); let (hash, total_lamports) = self.calculate_accounts_hash_helper(use_index, slot, &config)?; if debug_verify {