Skip to content

Commit

Permalink
attempt to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Bozhko committed May 21, 2024
1 parent 2ea89a4 commit eb441a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions solr/core/src/java/org/apache/solr/core/SolrConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ private SolrConfig(

solrRequestParsers = new SolrRequestParsers(this);
log.debug("Loaded SolrConfig: {}", name);

// make resource loader aware of the config early on
this.resourceLoader.initConfig(this);
} finally {
ConfigNode.SUBSTITUTES.remove();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,14 @@ public <T> boolean addToCoreAware(T obj) {
}
}

void initConfig(SolrConfig config) {
assert this.config == null || this.config == config;
this.config = config;
}

void initCore(SolrCore core) {
initConfig(core.getSolrConfig());
this.coreName = core.getName();
this.config = core.getSolrConfig();
this.coreId = core.uniqueId;
this.coreContainer = core.getCoreContainer();
SolrCore.Provider coreProvider = core.coreProvider;
Expand Down

0 comments on commit eb441a6

Please sign in to comment.