You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2016/07/28 13:28:01 UTC

[2/2] lucene-solr:branch_6x: Add missing update of `lastDocId` in AssertingPointsFormat.

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 <jp...@gmail.com>
Authored: Thu Jul 28 15:26:51 2016 +0200
Committer: Adrien Grand <jp...@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);
     }