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");