Skip to content

Commit

Permalink
Fix comment on compare suffix and target. (#13787)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsop-479 authored Sep 29, 2024
1 parent 0a8604d commit 7eea8fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ public SeekStatus scanToTermLeaf(BytesRef target, boolean exactOnly) throws IOEx
startBytePos = suffixesReader.getPosition();
suffixesReader.skipBytes(suffixLength);

// Loop over bytes in the suffix, comparing to the target
// Compare suffix and target.
final int cmp =
Arrays.compareUnsigned(
suffixBytes,
Expand Down Expand Up @@ -686,7 +686,7 @@ public SeekStatus binarySearchTermLeaf(BytesRef target, boolean exactOnly) throw
nextEnt = mid + 1;
startBytePos = mid * suffixLength;

// Binary search bytes in the suffix, comparing to the target.
// Compare suffix and target.
cmp =
Arrays.compareUnsigned(
suffixBytes,
Expand Down Expand Up @@ -792,6 +792,7 @@ public SeekStatus scanToTermNonLeaf(BytesRef target, boolean exactOnly) throws I
lastSubFP = fp - subCode;
}

// Compare suffix and target.
final int cmp =
Arrays.compareUnsigned(
suffixBytes,
Expand Down

0 comments on commit 7eea8fb

Please sign in to comment.