rmuir opened a new issue, #11848:
URL: https://github.com/apache/lucene/issues/11848
### Description
When looking at #11843, I noticed code of the following in several places in
ExitableDirectoryReader:
```
if (calls++ % MAX_CALLS_XXX== 0) {
checkAndThrow();
}
```
Unfortunately these `MAX_CALLS_XXX` constants are not powers of 2: we should
avoid integer division.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]