mirror of https://github.com/apache/lucene.git
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:
parent
062850fe7a
commit
5ddfe531ed
|
@ -640,7 +640,7 @@ public class DirectUpdateHandler2 extends UpdateHandler {
|
||||||
|
|
||||||
// check if docs have been submitted since the commit started
|
// check if docs have been submitted since the commit started
|
||||||
if( lastAddedTime > started ) {
|
if( lastAddedTime > started ) {
|
||||||
if( docsSinceCommit > docsUpperBound ) {
|
if( docsUpperBound > 0 && docsSinceCommit > docsUpperBound ) {
|
||||||
pending = scheduler.schedule( this, 100, TimeUnit.MILLISECONDS );
|
pending = scheduler.schedule( this, 100, TimeUnit.MILLISECONDS );
|
||||||
}
|
}
|
||||||
else if( timeUpperBound > 0 ) {
|
else if( timeUpperBound > 0 ) {
|
||||||
|
|
Loading…
Reference in New Issue