mirror of https://github.com/apache/lucene.git
SOLR-918 -- Store SolrInfoMBean in a ConcurrentHashMap instead of a LinkedHashMap
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@727370 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aeb6b9975f
commit
151d8c4f04
|
@ -97,7 +97,7 @@ final class RequestHandlers {
|
|||
SolrRequestHandler old = handlers.put(norm, handler);
|
||||
if (handlerName != null && handlerName != "") {
|
||||
if (handler instanceof SolrInfoMBean) {
|
||||
core.getInfoRegistry().put(handlerName, (SolrInfoMBean)handler);
|
||||
core.getInfoRegistry().put(handlerName, handler);
|
||||
}
|
||||
}
|
||||
return old;
|
||||
|
|
|
@ -498,7 +498,7 @@ public final class SolrCore implements SolrInfoMBean {
|
|||
infoRegistry = new JmxMonitoredMap<String, SolrInfoMBean>(name, config.jmxConfig);
|
||||
} else {
|
||||
log.info("JMX monitoring not detected for core: " + name);
|
||||
infoRegistry = new LinkedHashMap<String, SolrInfoMBean>();
|
||||
infoRegistry = new ConcurrentHashMap<String, SolrInfoMBean>();
|
||||
}
|
||||
|
||||
this.schema = schema;
|
||||
|
|
Loading…
Reference in New Issue