shishkovilja commented on code in PR #12467:
URL: https://github.com/apache/ignite/pull/12467#discussion_r2469313942
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/IgniteDhtPartitionHistorySuppliersMap.java:
##########
@@ -94,15 +97,18 @@ public synchronized void put(UUID nodeId, int grpId, int
partId, long cntr) {
if (map == null)
map = new HashMap<>();
- Map<T2<Integer, Integer>, Long> nodeMap = map.get(nodeId);
+ IgniteDhtPartitionReservationsMessage nodeMap = map.get(nodeId);
if (nodeMap == null) {
- nodeMap = new HashMap<>();
+ nodeMap = new IgniteDhtPartitionReservationsMessage(new
HashMap<>());
map.put(nodeId, nodeMap);
}
- nodeMap.put(new T2<>(grpId, partId), cntr);
+ if (nodeMap.map() == null)
Review Comment:
Let's encapsulate it into a IgniteDhtPartitionReservationsMessage
--
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]