uschindler commented on code in PR #16145:
URL: https://github.com/apache/lucene/pull/16145#discussion_r4542852611


##########
lucene/core/src/java/org/apache/lucene/store/MemorySegmentIndexInput.java:
##########
@@ -59,7 +57,8 @@ abstract class MemorySegmentIndexInput extends IndexInput 
implements MemorySegme
   final Arena arena;
   final MemorySegment[] segments;
   final Function<IOContext, ReadAdvice> toReadAdvice;
-  final AtomicInteger sharedPrefetchCounter;
+  final PrefetchBackoff backoff;
+  int prefetchCalls; // this input's own count, starting at 
nextCounterStart(); see PrefetchBackoff

Review Comment:
   I'd like to have the non final state fields in the second group below.



-- 
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]

Reply via email to