Skip to content

Commit

Permalink
Fix extra "search" call issue (MID-5339)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8b7c666)
  • Loading branch information
mederly committed May 27, 2019
1 parent f1433a6 commit d86f841
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -893,7 +893,7 @@ public <T extends ObjectType> void searchObjectsIterativeByPagingStrictlySequent
break main;
}
}
if (objects.size() == 0) {
if (objects.size() == 0 || objects.size() < paging.getMaxSize()) {
break;
}
if (maxSize != null) {
Expand Down

0 comments on commit d86f841

Please sign in to comment.