IGNITE-10493 Fix exchange local stages comparator
authorPavel Kovalenko <jokserfn@gmail.com>
Wed, 26 Dec 2018 13:28:37 +0000 (16:28 +0300)
committerPavel Kovalenko <jokserfn@gmail.com>
Wed, 26 Dec 2018 13:28:37 +0000 (16:28 +0300)
Signed-off-by: Pavel Kovalenko <jokserfn@gmail.com>
modules/core/src/main/java/org/apache/ignite/internal/util/TimeBag.java

index 0da1ee7..156d826 100644 (file)
@@ -302,9 +302,9 @@ public class TimeBag {
 
         /** {@inheritDoc} */
         @Override public int compareTo(@NotNull TimeBag.Stage o) {
-            if (o.time > time)
-                return -1;
             if (o.time < time)
+                return -1;
+            if (o.time > time)
                 return 1;
             return o.description.compareTo(description);
         }