added back required param
This commit is contained in:
parent
ebead402fc
commit
0efbf32577
|
@ -258,7 +258,7 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
|
||||||
// this is so we can be sure of when we hit the last page
|
// this is so we can be sure of when we hit the last page
|
||||||
// (when doing offset searches)
|
// (when doing offset searches)
|
||||||
final List<JpaPid> pidsSubList =
|
final List<JpaPid> pidsSubList =
|
||||||
mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex, myRequest, requestPartitionId);
|
mySearchCoordinatorSvc.getResources(myUuid, theFromIndex, theToIndex + 1, myRequest, requestPartitionId);
|
||||||
// max list size should be either the entire list, or from - to length
|
// max list size should be either the entire list, or from - to length
|
||||||
int maxSize = Math.min(theToIndex - theFromIndex, pidsSubList.size());
|
int maxSize = Math.min(theToIndex - theFromIndex, pidsSubList.size());
|
||||||
theResponsePageBuilder.setTotalRequestedResourcesFetched(pidsSubList.size());
|
theResponsePageBuilder.setTotalRequestedResourcesFetched(pidsSubList.size());
|
||||||
|
|
Loading…
Reference in New Issue