SOLR-10957: Changed SolrCoreParser.init to use the resource loader from getSchema() instead of the resource loader from getCore().

This commit is contained in:
Christine Poerschke 2017-07-04 12:02:40 +01:00
parent d3c67cf5e4
commit db71c5615a
2 changed files with 4 additions and 1 deletions

View File

@ -74,6 +74,9 @@ Other Changes
* SOLR-10827: Factor out abstract FilteringSolrMetricReporter class. (Christine Poerschke) * SOLR-10827: Factor out abstract FilteringSolrMetricReporter class. (Christine Poerschke)
* SOLR-10957: Changed SolrCoreParser.init to use the resource loader from getSchema()
instead of the resource loader from getCore(). (Christine Poerschke)
================== 7.0.0 ================== ================== 7.0.0 ==================
Versions of Major Components Versions of Major Components

View File

@ -57,7 +57,7 @@ public class SolrCoreParser extends CoreParser implements NamedListInitializedPl
if (req == null) { if (req == null) {
loader = new SolrResourceLoader(); loader = new SolrResourceLoader();
} else { } else {
loader = req.getCore().getResourceLoader(); loader = req.getSchema().getResourceLoader();
} }
final Iterable<Map.Entry<String,Object>> args = initArgs; final Iterable<Map.Entry<String,Object>> args = initArgs;