mirror of https://github.com/apache/lucene.git
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:
parent
826092d998
commit
ca05564005
|
@ -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
|
||||
----------------------
|
||||
|
|
|
@ -293,7 +293,7 @@ public class DirectUpdateHandler2 extends UpdateHandler {
|
|||
|
||||
if (!cmd.softCommit) {
|
||||
writer.commit();
|
||||
|
||||
numDocsPending.set(0);
|
||||
callPostCommitCallbacks();
|
||||
} else {
|
||||
callPostSoftCommitCallbacks();
|
||||
|
|
Loading…
Reference in New Issue