Fix S3 GET stats

This commit is contained in:
Ben Johnson
2021-01-16 09:22:33 -07:00
parent b4e5079760
commit 71ab15e50a

View File

@@ -818,7 +818,7 @@ func (r *Replica) SnapshotReader(ctx context.Context, generation string, index i
return nil, err return nil, err
} }
r.getOperationTotalCounter.Inc() r.getOperationTotalCounter.Inc()
r.getOperationTotalCounter.Add(float64(*out.ContentLength)) r.getOperationBytesCounter.Add(float64(*out.ContentLength))
// Decompress the snapshot file. // Decompress the snapshot file.
gr, err := gzip.NewReader(out.Body) gr, err := gzip.NewReader(out.Body)