small bug fix from Ryan over email...

: If you commit a document while the updater is autocommiting, it is
: likely to immediatly start another autocommit (unless you are also
: using maxDocs).
: 
: Here is the one line patch to fix it:


git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@509349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2007-02-19 21:54:58 +00:00
parent 062850fe7a
commit 5ddfe531ed
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ public class DirectUpdateHandler2 extends UpdateHandler {
// check if docs have been submitted since the commit started
if( lastAddedTime > started ) {
if( docsSinceCommit > docsUpperBound ) {
if( docsUpperBound > 0 && docsSinceCommit > docsUpperBound ) {
pending = scheduler.schedule( this, 100, TimeUnit.MILLISECONDS );
}
else if( timeUpperBound > 0 ) {