lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r372350 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/index/IndexWriter.java
Date Wed, 25 Jan 2006 22:49:52 GMT
Author: dnaber
Date: Wed Jan 25 14:49:45 2006
New Revision: 372350

URL: http://svn.apache.org/viewcvs?rev=372350&view=rev
Log:
make setMaxBufferedDocs(1) behave correctly

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/CHANGES.txt?rev=372350&r1=372349&r2=372350&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Wed Jan 25 14:49:45 2006
@@ -330,6 +330,9 @@
     fixed by aquiring the commit lock.
     (Luc Vanlerberghe via Yonik Seeley, LUCENE-481)
 
+22. IndexWriter.setMaxBufferedDocs(1) didn't have the expected effect,
+    this has now been fixed. (Daniel Naber)
+
 Optimizations
      
  1. Disk usage (peak requirements during indexing and optimization)

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?rev=372350&r1=372349&r2=372350&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Wed Jan 25 14:49:45
2006
@@ -637,7 +637,7 @@
       int mergeDocs = 0;
       while (--minSegment >= 0) {
         SegmentInfo si = segmentInfos.info(minSegment);
-        if (si.docCount >= targetMergeDocs)
+        if (si.docCount > targetMergeDocs)
           break;
         mergeDocs += si.docCount;
       }



Mime
View raw message