Remove workaround in HotRodUtils#paginateQuery
This commit is contained in:
parent
085dd24875
commit
9025ec16f0
1 changed files with 0 additions and 7 deletions
|
@ -23,16 +23,9 @@ import org.infinispan.query.dsl.Query;
|
|||
*/
|
||||
public class HotRodUtils {
|
||||
|
||||
public static final int DEFAULT_MAX_RESULTS = Integer.MAX_VALUE >> 1;
|
||||
|
||||
public static <T> Query<T> paginateQuery(Query<T> query, Integer first, Integer max) {
|
||||
if (first != null && first > 0) {
|
||||
query = query.startOffset(first);
|
||||
|
||||
// workaround because of ISPN-13702 bug, see https://github.com/keycloak/keycloak/issues/10090
|
||||
if (max == null || max < 0) {
|
||||
max = DEFAULT_MAX_RESULTS;
|
||||
}
|
||||
}
|
||||
|
||||
if (max != null && max >= 0) {
|
||||
|
|
Loading…
Reference in a new issue