commit | 3558fdc6f56de5d7055af77a7bbb5f9fca876f51 | [log] [tgz] |
---|---|---|
author | Diego Zambelli Sessona <diego.sessona@gmail.com> | Thu Apr 04 10:14:09 2024 +0200 |
committer | Diego Zambelli Sessona <diego.sessona@gmail.com> | Thu Apr 04 10:15:09 2024 +0200 |
tree | 1e48dcc2e2bc1b868f58b503dde6ee732e1e71a3 | |
parent | 1d7803586a74ab9688b32d64f9df15527fafbfde [diff] | |
parent | 65da242079ead7ee68bd7ee4241838bd466b93f2 [diff] |
Merge branch 'stable-3.4' into stable-3.5 * stable-3.4: Reset pageResultSize when PaginationType NONE back-fill results Release-Notes: skip Change-Id: I32a22fcbd7c84d07ff96df44975dd4c53259b94e
diff --git a/java/com/google/gerrit/index/query/PaginatingSource.java b/java/com/google/gerrit/index/query/PaginatingSource.java index 0ce0cc9..84572d7 100644 --- a/java/com/google/gerrit/index/query/PaginatingSource.java +++ b/java/com/google/gerrit/index/query/PaginatingSource.java
@@ -103,6 +103,7 @@ int nextStart = pageResultSize; while (pageResultSize == limit && r.size() < limit) { ResultSet<T> next = p.restart(nextStart); + pageResultSize = 0; for (T data : buffer(next)) { if (match(data)) { r.add(data);