Looks fine to me.

----- Original Message ----
From: Daniel Naber <[EMAIL PROTECTED]>
To: [email protected]
Sent: Mon 23 Jan 2006 02:40:27 PM EST
Subject: patch to fix setMaxBufferedDocs

Hi,

does anybody see a problem with the attached patch? It fixes the problem 
that setMaxBufferedDocs(1) has no effect.

Regards
 Daniel

-- 
http://www.danielnaber.de



-----Inline Attachment Follows-----

Index: 
/home/dnaber/.eclipse/LuceneSVN/src/java/org/apache/lucene/index/IndexWriter.java
===================================================================
--- 
/home/dnaber/.eclipse/LuceneSVN/src/java/org/apache/lucene/index/IndexWriter.java
    (revision 360551)
+++ 
/home/dnaber/.eclipse/LuceneSVN/src/java/org/apache/lucene/index/IndexWriter.java
    (working copy)
@@ -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;
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to