SOLR-2697: commit and autocommit operations don't reset DirectUpdateHandler2.numDocsPending stats attribute.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1153893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-08-04 14:43:40 +00:00
parent 826092d998
commit ca05564005
2 changed files with 5 additions and 1 deletions

View File

@ -191,6 +191,10 @@ Optimizations
on each commit (ie commits no longer wait for background merges to complete),
works with SolrCore to provide faster 'soft' commits, and has an improved API
that requires less instanceof special casing. (Mark Miller, Robert Muir)
Additional Work:
SOLR-2697: commit and autocommit operations don't reset
DirectUpdateHandler2.numDocsPending stats attribute.
(Alexey Serba, Mark Miller)
Bug Fixes
----------------------

View File

@ -293,7 +293,7 @@ public class DirectUpdateHandler2 extends UpdateHandler {
if (!cmd.softCommit) {
writer.commit();
numDocsPending.set(0);
callPostCommitCallbacks();
} else {
callPostSoftCommitCallbacks();