lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject [2/3] lucene-solr:branch_6x: fix SimpleCopyJob.compareTo test bug
Date Tue, 02 Aug 2016 09:10:00 GMT
fix SimpleCopyJob.compareTo test bug


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5b9e6b3f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5b9e6b3f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5b9e6b3f

Branch: refs/heads/branch_6x
Commit: 5b9e6b3f8b49a6417d112bb3915a03b30aae2371
Parents: 6c02a53
Author: Mike McCandless <mikemccand@apache.org>
Authored: Tue Aug 2 05:09:28 2016 -0400
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Tue Aug 2 05:09:28 2016 -0400

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5b9e6b3f/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java
----------------------------------------------------------------------
diff --git a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java
b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java
index ba72ae4..7e14881 100644
--- a/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java
+++ b/lucene/replicator/src/test/org/apache/lucene/replicator/nrt/SimpleCopyJob.java
@@ -118,6 +118,8 @@ class SimpleCopyJob extends CopyJob {
       return highPriority ? -1 : 1;
     } else if (ord < other.ord) {
       return -1;
+    } else if (ord > other.ord) {
+      return 1;
     } else {
       return 0;
     }


Mime
View raw message