mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(index-prio) Fail louder when size is 0 in PrioDocIdsTransformer
We can't deal with this scenario and should complain very loudly
This commit is contained in:
parent
97695693f2
commit
6303977e9c
@ -37,9 +37,8 @@ public class PrioDocIdsTransformer implements LongArrayTransformations.LongIOTra
|
||||
final int sizeL = (int) ((endL - startL));
|
||||
final long startOffsetB = writeOffsetB;
|
||||
|
||||
if (sizeL == 0) {
|
||||
return -1;
|
||||
}
|
||||
if (sizeL == 0)
|
||||
throw new IllegalStateException("Empty range");
|
||||
|
||||
readChannel.position(startL * 8);
|
||||
readBuffer.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user