Add logging after taking a bank snapshot (backport #19891) (#19920)

* Add logging after taking a bank snapshot (#19891)

(cherry picked from commit 8e3c420414)

* Fix conflict

Co-authored-by: Brooks Prumo <brooks@solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
mergify[bot]
2021-09-15 14:29:33 -06:00
committed by GitHub
parent 3ae2917603
commit 97bd521725

View File

@ -189,6 +189,12 @@ impl SnapshotRequestHandler {
); );
} }
snapshot_time.stop(); 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 // Cleanup outdated snapshots
let mut purge_old_snapshots_time = Measure::start("purge_old_snapshots_time"); let mut purge_old_snapshots_time = Measure::start("purge_old_snapshots_time");