mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(index-prio) Don't increment readItems counter when the output buffer is full
This behavior was causing the reader to sometimes discard trailing entries in the list.
This commit is contained in:
parent
1ab875a75d
commit
97695693f2
@ -68,7 +68,7 @@ public class PrioIndexEntrySource implements EntrySource {
|
|||||||
var outputBuffer = buffer.asByteBuffer().order(ByteOrder.LITTLE_ENDIAN);
|
var outputBuffer = buffer.asByteBuffer().order(ByteOrder.LITTLE_ENDIAN);
|
||||||
outputBuffer.clear();
|
outputBuffer.clear();
|
||||||
|
|
||||||
while (readItems++ < numItems && outputBuffer.hasRemaining()) {
|
while (outputBuffer.hasRemaining() && readItems++ < numItems) {
|
||||||
fillReadBuffer();
|
fillReadBuffer();
|
||||||
|
|
||||||
int rank;
|
int rank;
|
||||||
|
Loading…
Reference in New Issue
Block a user