fix another getStats issue - soft commit was also recently added using time for docs stat

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1178632 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-10-03 23:22:20 +00:00
parent edb79b1f39
commit c1be69731d
1 changed files with 3 additions and 3 deletions

View File

@ -491,15 +491,15 @@ public class DirectUpdateHandler2 extends UpdateHandler {
public NamedList getStatistics() {
NamedList lst = new SimpleOrderedMap();
lst.add("commits", commitCommands.get());
if (commitTracker.getTimeUpperBound() > 0) {
if (commitTracker.getDocsUpperBound() > 0) {
lst.add("autocommit maxDocs", commitTracker.getDocsUpperBound());
}
if (commitTracker.getTimeUpperBound() > 0) {
lst.add("autocommit maxTime", "" + commitTracker.getTimeUpperBound() + "ms");
}
lst.add("autocommits", commitTracker.getCommitCount());
if (softCommitTracker.getTimeUpperBound() > 0) {
lst.add("soft autocommit maxDocs", softCommitTracker.getTimeUpperBound());
if (softCommitTracker.getDocsUpperBound() > 0) {
lst.add("soft autocommit maxDocs", softCommitTracker.getDocsUpperBound());
}
if (softCommitTracker.getTimeUpperBound() > 0) {
lst.add("soft autocommit maxTime", "" + softCommitTracker.getTimeUpperBound() + "ms");