mirror of https://github.com/apache/lucene.git
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:
parent
edb79b1f39
commit
c1be69731d
|
@ -491,15 +491,15 @@ public class DirectUpdateHandler2 extends UpdateHandler {
|
||||||
public NamedList getStatistics() {
|
public NamedList getStatistics() {
|
||||||
NamedList lst = new SimpleOrderedMap();
|
NamedList lst = new SimpleOrderedMap();
|
||||||
lst.add("commits", commitCommands.get());
|
lst.add("commits", commitCommands.get());
|
||||||
if (commitTracker.getTimeUpperBound() > 0) {
|
if (commitTracker.getDocsUpperBound() > 0) {
|
||||||
lst.add("autocommit maxDocs", commitTracker.getDocsUpperBound());
|
lst.add("autocommit maxDocs", commitTracker.getDocsUpperBound());
|
||||||
}
|
}
|
||||||
if (commitTracker.getTimeUpperBound() > 0) {
|
if (commitTracker.getTimeUpperBound() > 0) {
|
||||||
lst.add("autocommit maxTime", "" + commitTracker.getTimeUpperBound() + "ms");
|
lst.add("autocommit maxTime", "" + commitTracker.getTimeUpperBound() + "ms");
|
||||||
}
|
}
|
||||||
lst.add("autocommits", commitTracker.getCommitCount());
|
lst.add("autocommits", commitTracker.getCommitCount());
|
||||||
if (softCommitTracker.getTimeUpperBound() > 0) {
|
if (softCommitTracker.getDocsUpperBound() > 0) {
|
||||||
lst.add("soft autocommit maxDocs", softCommitTracker.getTimeUpperBound());
|
lst.add("soft autocommit maxDocs", softCommitTracker.getDocsUpperBound());
|
||||||
}
|
}
|
||||||
if (softCommitTracker.getTimeUpperBound() > 0) {
|
if (softCommitTracker.getTimeUpperBound() > 0) {
|
||||||
lst.add("soft autocommit maxTime", "" + softCommitTracker.getTimeUpperBound() + "ms");
|
lst.add("soft autocommit maxTime", "" + softCommitTracker.getTimeUpperBound() + "ms");
|
||||||
|
|
Loading…
Reference in New Issue