Add logging after taking a bank snapshot (#19891)

This commit is contained in:
Brooks Prumo
2021-09-15 07:39:21 -05:00
committed by GitHub
parent 28673d5cb5
commit 8e3c420414

View File

@ -217,6 +217,12 @@ impl SnapshotRequestHandler {
} }
} }
snapshot_time.stop(); snapshot_time.stop();
info!("Took bank snapshot. snapshot type: {:?}, slot: {}, accounts hash: {}, bank hash: {}",
snapshot_type,
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");