belliottsmith commented on code in PR #4434:
URL: https://github.com/apache/cassandra/pull/4434#discussion_r2460918930


##########
src/java/org/apache/cassandra/service/paxos/cleanup/PaxosCleanupLocalCoordinator.java:
##########
@@ -65,6 +66,20 @@ private static class DelayedRepair
         private final UncommittedPaxosKey uncommitted;
         private final long scheduledAtNanos;
 
+        private static Comparator<DelayedRepair> PRIORITY_COMPARATOR = new 
Comparator<DelayedRepair>()
+        {
+            @Override
+            public int compare(DelayedRepair o1, DelayedRepair o2)
+            {
+                long delta = o1.scheduledAtNanos - o2.scheduledAtNanos;

Review Comment:
   `Long.compare`?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to