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:
Shalin Shekhar Mangar 2008-12-17 13:10:47 +00:00
parent aeb6b9975f
commit 151d8c4f04
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;