From c1be69731d98687f638e00e54f5215f8aa500191 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Mon, 3 Oct 2011 23:22:20 +0000 Subject: [PATCH] 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 --- .../java/org/apache/solr/update/DirectUpdateHandler2.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java index a4902c58a02..1311874b266 100644 --- a/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java +++ b/solr/core/src/java/org/apache/solr/update/DirectUpdateHandler2.java @@ -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");