From bc29a3d7ed389485a3a1f9d86017f13b324e73ce Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Thu, 28 Jul 2016 15:26:51 +0200 Subject: [PATCH] Add missing update of `lastDocId` in AssertingPointsFormat. --- .../apache/lucene/codecs/asserting/AssertingPointsFormat.java | 1 + 1 file changed, 1 insertion(+) 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 c3c672b6475..0bbf2c6faf6 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); }