PL-7476 Paging does not work when using in-memory security constraints

This commit is contained in:
Andrey Subbotin 2016-07-12 09:31:24 +04:00
parent 262eae7582
commit a24e7c3cfc

View File

@ -585,7 +585,7 @@ public class DataManagerBean implements DataManager {
int maxResults = (requestedFirst + requestedMax) * factor;
int i = 0;
while (filteredCollection.size() < setSize) {
if (i++ > 10) {
if (i++ > 1000) {
log.warn("In-memory distinct: endless loop detected for " + context);
break;
}