Skip to content

Commit

Permalink
Reduce repair_stats debug (solana-labs#13393)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge authored Nov 4, 2020
1 parent 7ee0c9e commit 0d66315
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion core/src/repair_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,24 @@ impl RepairService {
let repair_total = repair_stats.shred.count
+ repair_stats.highest_shred.count
+ repair_stats.orphan.count;
info!("repair_stats: {:?}", repair_stats);
let slot_to_count: Vec<_> = repair_stats
.shred
.slot_pubkeys
.iter()
.chain(repair_stats.highest_shred.slot_pubkeys.iter())
.chain(repair_stats.orphan.slot_pubkeys.iter())
.map(|(slot, slot_repairs)| {
(
slot,
slot_repairs
.pubkey_repairs
.iter()
.map(|(_key, count)| count)
.sum::<u64>(),
)
})
.collect();
info!("repair_stats: {:?}", slot_to_count);
if repair_total > 0 {
datapoint_info!(
"serve_repair-repair",
Expand Down

0 comments on commit 0d66315

Please sign in to comment.