shishkovilja commented on code in PR #12523:
URL: https://github.com/apache/ignite/pull/12523#discussion_r2549934153
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsSingleMessage.java:
##########
@@ -198,6 +209,13 @@ public void addPartitionUpdateCounters(int grpId,
CachePartitionPartialCountersM
partCntrs.put(grpId, cntrMap);
}
+ /**
+ * @param partCntrs Partition update counters per cache group.
+ */
+ public void partitionUpdateCounters(Map<Integer,
CachePartitionPartialCountersMap> partCntrs) {
+ this.partCntrs = partCntrs;
+ }
+
/** @return Partition update counters per cache group. */
public Map<Integer, CachePartitionPartialCountersMap>
partitionUpdateCounters() {
return partCntrs == null ? Collections.emptyMap() :
Collections.unmodifiableMap(partCntrs);
Review Comment:
Let's simplify getter and move this logic upper to a place where it is used.
--
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]