From 130ff6a961fcf4c96cb640935660d78233f8988e Mon Sep 17 00:00:00 2001 From: Ben Ye Date: Wed, 24 Apr 2024 18:37:14 -0700 Subject: [PATCH] change label Signed-off-by: Ben Ye --- pkg/block/indexheader/binary_reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/block/indexheader/binary_reader.go b/pkg/block/indexheader/binary_reader.go index 1d1e6603cb1..1afaabb7865 100644 --- a/pkg/block/indexheader/binary_reader.go +++ b/pkg/block/indexheader/binary_reader.go @@ -852,7 +852,6 @@ func (r *BinaryReader) postingsOffset(name string, values ...string) ([]index.Ra } var newSameRngs []index.Range // The start, end offsets in the postings table in the original index file. -OUTER: for valueIndex < len(values) { wantedValue := values[valueIndex] @@ -876,6 +875,7 @@ OUTER: // Iterate on the offset table. newSameRngs = newSameRngs[:0] + Iter: for d.Err() == nil { // Posting format entry is as follows: // │ ┌────────────────────────────────────────┐ │ @@ -923,7 +923,7 @@ OUTER: // We want to limit this loop within e.offsets[i, i+1). So when the wanted value // is >= e.offsets[i+1], go out of the loop and binary search again. if wantedValue >= e.offsets[i+1].value { - continue OUTER + break Iter } } }