From f910fdc099f848a9284be52a75e26e3b20ab727a Mon Sep 17 00:00:00 2001 From: Justin Jung Date: Tue, 4 Jun 2024 15:26:55 -0700 Subject: [PATCH] Fix wrong data type Signed-off-by: Justin Jung --- pkg/store/bucket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/store/bucket.go b/pkg/store/bucket.go index 8a10fd4d23c..bdbeafcfe58 100644 --- a/pkg/store/bucket.go +++ b/pkg/store/bucket.go @@ -2880,12 +2880,12 @@ func (r *bucketIndexReader) fetchExpandedPostingsFromCache(ctx context.Context, return false, nil, nil } for _, b := range bytesLimiters { - if err := b.ReserveWithType(uint64(len(dataFromCache)), PostingsFetched); err != nil { + if err := b.ReserveWithType(uint64(len(dataFromCache)), PostingsTouched); err != nil { return false, nil, httpgrpc.Errorf(int(codes.ResourceExhausted), "exceeded bytes limit while loading expanded postings from index cache: %s", err) } } - r.stats.add(PostingsFetched, 1, len(dataFromCache)) + r.stats.add(PostingsTouched, 1, len(dataFromCache)) p, closeFns, err := r.decodeCachedPostings(dataFromCache) defer func() { for _, closeFn := range closeFns {