SOLR-2565: same as the addDoc bug, deletes are not triggering soft commits if hard auto commit by time is also configured

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1161265 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-08-24 20:23:57 +00:00
parent 69d8906c16
commit a05f774573
1 changed files with 6 additions and 2 deletions

View File

@ -187,7 +187,9 @@ public class DirectUpdateHandler2 extends UpdateHandler {
if (commitTracker.getTimeUpperBound() > 0) {
commitTracker.scheduleCommitWithin(commitTracker.getTimeUpperBound());
} else if (softCommitTracker.getTimeUpperBound() > 0) {
}
if (softCommitTracker.getTimeUpperBound() > 0) {
softCommitTracker.scheduleCommitWithin(softCommitTracker.getTimeUpperBound());
}
}
@ -219,7 +221,9 @@ public class DirectUpdateHandler2 extends UpdateHandler {
if (commitTracker.getTimeUpperBound() > 0) {
commitTracker.scheduleCommitWithin(commitTracker.getTimeUpperBound());
} else if (softCommitTracker.getTimeUpperBound()> 0) {
}
if (softCommitTracker.getTimeUpperBound()> 0) {
softCommitTracker.scheduleCommitWithin(softCommitTracker.getTimeUpperBound());
}