lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1034768 - /lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java
Date Sat, 13 Nov 2010 14:32:32 GMT
Author: mikemccand
Date: Sat Nov 13 14:32:31 2010
New Revision: 1034768

URL: http://svn.apache.org/viewvc?rev=1034768&view=rev
Log:
don't mark merged reader with 'hasChanges' if delCount == 0

Modified:
    lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java?rev=1034768&r1=1034767&r2=1034768&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/branches/lucene_2_9/src/java/org/apache/lucene/index/IndexWriter.java Sat
Nov 13 14:32:31 2010
@@ -4561,7 +4561,7 @@ public class IndexWriter {
 
     assert mergeReader.numDeletedDocs() == delCount;
 
-    mergeReader.hasChanges = delCount >= 0;
+    mergeReader.hasChanges = delCount > 0;
   }
 
   /* FIXME if we want to support non-contiguous segment merges */



Mime
View raw message