diff --git a/src/java/org/apache/solr/handler/RequestHandlerBase.java b/src/java/org/apache/solr/handler/RequestHandlerBase.java index 18c17504b6b..b5b8149576e 100644 --- a/src/java/org/apache/solr/handler/RequestHandlerBase.java +++ b/src/java/org/apache/solr/handler/RequestHandlerBase.java @@ -37,15 +37,13 @@ import java.net.URL; public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfoMBean { // statistics - // TODO: should we bother synchronizing these, or is an off-by-one error - // acceptable every million requests or so? volatile long numRequests; volatile long numErrors; + volatile long totalTime = 0; protected NamedList initArgs = null; protected SolrParams defaults; protected SolrParams appends; protected SolrParams invariants; - volatile long totalTime = 0; long handlerStart = System.currentTimeMillis(); /** shorten the class references for utilities */ @@ -108,7 +106,7 @@ public abstract class RequestHandlerBase implements SolrRequestHandler, SolrInfo o = args.get("invariants"); if (o != null && o instanceof NamedList) { invariants = SolrParams.toSolrParams((NamedList)o); - } + } } }