zstan commented on code in PR #12666:
URL: https://github.com/apache/ignite/pull/12666#discussion_r2739979147
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtTxRemote.java:
##########
@@ -226,12 +226,7 @@ public GridDhtTxRemote(
/** {@inheritDoc} */
@Override public Collection<UUID> masterNodeIds() {
- Collection<UUID> res = new ArrayList<>(2);
-
- res.add(nearNodeId);
- res.add(nodeId);
-
- return res;
+ return nearNodeId != nodeId ? List.of(nearNodeId, nodeId) :
List.of(nearNodeId);
Review Comment:
not relates to an issue, just a bit improvement
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]