lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject [2/2] lucene-solr:branch_6x: Add missing update of `lastDocId` in AssertingPointsFormat.
Date Thu, 28 Jul 2016 13:28:01 GMT
Add missing update of `lastDocId` in AssertingPointsFormat.


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

Branch: refs/heads/branch_6x
Commit: c95eef0d2a41e00a4e9c8332988f8971f78a5136
Parents: 8247f9f
Author: Adrien Grand <jpountz@gmail.com>
Authored: Thu Jul 28 15:26:51 2016 +0200
Committer: Adrien Grand <jpountz@gmail.com>
Committed: Thu Jul 28 15:27:41 2016 +0200

----------------------------------------------------------------------
 .../org/apache/lucene/codecs/asserting/AssertingPointsFormat.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c95eef0d/lucene/test-framework/src/java/org/apache/lucene/codecs/asserting/AssertingPointsFormat.java
----------------------------------------------------------------------
diff --git a/lucene/test-framework/src/java/org/apache/lucene/codecs/asserting/AssertingPointsFormat.java
b/lucene/test-framework/src/java/org/apache/lucene/codecs/asserting/AssertingPointsFormat.java
index c3c672b..0bbf2c6 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/codecs/asserting/AssertingPointsFormat.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/codecs/asserting/AssertingPointsFormat.java
@@ -126,6 +126,7 @@ public final class AssertingPointsFormat extends PointsFormat {
           assert false: "point values are out of order";
         }
         System.arraycopy(packedValue, 0, lastDocValue, 0, bytesPerDim);
+        lastDocID = docID;
       }
       in.visit(docID, packedValue);
     }


Mime
View raw message