From 97bd5217250a13dbf86f6347d843d1c1d3932eec Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 15 Sep 2021 14:29:33 -0600 Subject: [PATCH] Add logging after taking a bank snapshot (backport #19891) (#19920) * Add logging after taking a bank snapshot (#19891) (cherry picked from commit 8e3c420414da791d263aa4a9fe79a103ca5179ed) * Fix conflict Co-authored-by: Brooks Prumo Co-authored-by: Tyera Eulberg --- runtime/src/accounts_background_service.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/src/accounts_background_service.rs b/runtime/src/accounts_background_service.rs index ee05320194..7b51615f67 100644 --- a/runtime/src/accounts_background_service.rs +++ b/runtime/src/accounts_background_service.rs @@ -189,6 +189,12 @@ impl SnapshotRequestHandler { ); } snapshot_time.stop(); + info!( + "Took bank snapshot. slot: {}, accounts hash: {}, bank hash: {}", + snapshot_root_bank.slot(), + snapshot_root_bank.get_accounts_hash(), + snapshot_root_bank.hash(), + ); // Cleanup outdated snapshots let mut purge_old_snapshots_time = Measure::start("purge_old_snapshots_time");