mirror of
https://github.com/prometheus/prometheus.git
synced 2025-09-22 06:11:00 +02:00
Test to corrupt segments mid-WAL, repair and check we can read the correct number of records. Make segmentBufReader pad short segments with zeros, and only advance curr segment index after fully reading segment.