Fix S3 GET stats
This commit is contained in:
2
s3/s3.go
2
s3/s3.go
@@ -818,7 +818,7 @@ func (r *Replica) SnapshotReader(ctx context.Context, generation string, index i
|
||||
return nil, err
|
||||
}
|
||||
r.getOperationTotalCounter.Inc()
|
||||
r.getOperationTotalCounter.Add(float64(*out.ContentLength))
|
||||
r.getOperationBytesCounter.Add(float64(*out.ContentLength))
|
||||
|
||||
// Decompress the snapshot file.
|
||||
gr, err := gzip.NewReader(out.Body)
|
||||
|
||||
Reference in New Issue
Block a user