-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
BitSetIterator
to correctly honor the contract of `DocIdSetIter…
…ator#intoBitSet`. (#14142) `BitSetIterator#intoBitSet` would currently fail if `upTo - offset` exceeds the length of the destination bit set. However, `DocIdSetIterator#intoBitSet` only requires matching docs to be set into the bit set, so having `upTo - offset` exceed the length of the dest bit set is legal as long as no bits are set beyond `offset + bitSet.length()`.
- Loading branch information
Showing
2 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters