lucene-java-commits mailing list archives

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

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

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

Modified: lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/IndexWriter.java?rev=1034767&r1=1034766&r2=1034767&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/branches/lucene_3_0/src/java/org/apache/lucene/index/IndexWriter.java Sat
Nov 13 14:32:13 2010
@@ -3860,7 +3860,7 @@ public class IndexWriter implements Clos
 
     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