shishkovilja commented on code in PR #12523:
URL: https://github.com/apache/ignite/pull/12523#discussion_r2555982561


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsSingleMessage.java:
##########
@@ -270,9 +313,9 @@ void partitionHistoryCounters(Map<Integer, Map<Integer, 
Long>> cntrMap) {
      */
     Map<Integer, Long> partitionHistoryCounters(int grpId) {
         if (partHistCntrs != null) {
-            Map<Integer, Long> res = partHistCntrs.get(grpId);
+            PartitionLongMap res = partHistCntrs.get(grpId);
 
-            return res != null ? res : Collections.<Integer, Long>emptyMap();
+            return res != null ? res.partitions() : Collections.emptyMap();

Review Comment:
   ```suggestion
               return res != null ? F.emptyIfNull(res.partitions()) : 
Collections.emptyMap();
   ```



-- 
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]

Reply via email to