Fix S3 GET bytes metric

This commit is contained in:
Ben Johnson
2021-01-19 06:46:13 -07:00
parent 7fb98df240
commit 1935ebd6f0

View File

@@ -879,7 +879,7 @@ func (r *Replica) WALReader(ctx context.Context, generation string, index int) (
defer out.Body.Close()
r.getOperationTotalCounter.Inc()
r.getOperationTotalCounter.Add(float64(*out.ContentLength))
r.getOperationBytesCounter.Add(float64(*out.ContentLength))
zr := lz4.NewReader(out.Body)