javeme commented on code in PR #2134: URL: https://github.com/apache/incubator-hugegraph/pull/2134#discussion_r1118856686
########## hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphIndexTransaction.java: ########## @@ -1120,21 +1120,25 @@ private static <T> boolean cmn(List<T> all, int m, int n, result = new ArrayList<>(n); } + int index = result.size(); if (m == n) { result.addAll(all.subList(current, all.size())); n = 0; } if (n == 0) { // All n items are selected - return callback.apply(result); + Boolean apply = callback.apply(result); + while (index < result.size()) { + result.remove(index); Review Comment: when to cause this behavior? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org