This is an automated email from the ASF dual-hosted git repository. ptupitsyn pushed a commit to branch ignite-14067 in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 846067782791d0f80271e8757d059201ceb8df61 Author: Pavel Tupitsyn <[email protected]> AuthorDate: Thu Jan 28 13:08:28 2021 +0300 TODOs --- .../processors/cache/distributed/dht/GridDhtTxPrepareFuture.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareFuture.java index 79d68c9..6be9eed 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareFuture.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxPrepareFuture.java @@ -1757,6 +1757,8 @@ public final class GridDhtTxPrepareFuture extends GridCacheCompoundFuture<Ignite for (IgniteTxEntry entry : entries) { try { + // TODO: Make it even better - pass lessPending to localCandidatesMax so it adds the items directly, + // without allocating another list. Collection<GridCacheMvccCandidate> candidates = entry.cached().localCandidatesMax(baseVer); for (GridCacheMvccCandidate cand : candidates) { lessPending.add(cand.version());
