romseygeek commented on issue #12356: URL: https://github.com/apache/lucene/issues/12356#issuecomment-1580848574
Maybe the simplest change to make here would be in `BufferedIndexInput.readXXX(pos)`, when pos is less than `bufferStart`, we reset `bufferStart` to `Math.min(pos, bufferStart - bufferSize)`? In other words, assume that once we're trying to read backwards we are likely to continue to do so and pull in the full previous page of bytes. -- 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]
