Skip to content

Commit

Permalink
change label
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <benye@amazon.com>
  • Loading branch information
yeya24 committed Apr 25, 2024
1 parent a53396a commit 130ff6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/block/indexheader/binary_reader.go
Expand Up @@ -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]

Expand All @@ -876,6 +875,7 @@ OUTER:

// Iterate on the offset table.
newSameRngs = newSameRngs[:0]
Iter:
for d.Err() == nil {
// Posting format entry is as follows:
// │ ┌────────────────────────────────────────┐ │
Expand Down Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 130ff6a

Please sign in to comment.