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: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to