From 5f4872152da885e5b6d1825a1f7a6ac0618eb1fa Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 13 Nov 2010 14:23:53 +0000 Subject: [PATCH] don't mark merged reader with 'hasChanges' if delCount == 0 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034763 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/index/IndexWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/src/java/org/apache/lucene/index/IndexWriter.java index 75a997cffb3..909318ef899 100644 --- a/lucene/src/java/org/apache/lucene/index/IndexWriter.java +++ b/lucene/src/java/org/apache/lucene/index/IndexWriter.java @@ -3549,7 +3549,7 @@ public class IndexWriter implements Closeable { assert mergeReader.numDeletedDocs() == delCount; - mergeReader.hasChanges = delCount >= 0; + mergeReader.hasChanges = delCount > 0; } /* FIXME if we want to support non-contiguous segment merges */