Mmuzaf commented on a change in pull request #9285:
URL: https://github.com/apache/ignite/pull/9285#discussion_r684182497
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
##########
@@ -4028,61 +3960,32 @@ void trim() {
* Represents a cache rebalance order that takes into account both values:
rebalance order itself and rebalance mode.
* It is assumed SYNC caches should be rebalanced in the first place.
*/
- private static class CacheRebalanceOrder implements
Comparable<CacheRebalanceOrder> {
- /** Cache rebalance order. */
- private int order;
-
- /** Cache rebalance mode. */
- private CacheRebalanceMode mode;
-
- /**
- * Creates a new instance of CacheRebalanceOrder.
- *
- * @param order Cache rebalance order.
- * @param mode Cache rebalance mode.
- */
- public CacheRebalanceOrder(int order, CacheRebalanceMode mode) {
- this.order = order;
- this.mode = mode;
- }
+ private static class CacheRebalanceOrderComparator implements
Comparator<CacheGroupContext>, Serializable {
Review comment:
Fixed.
--
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]