noblepaul commented on a change in pull request #160: URL: https://github.com/apache/solr/pull/160#discussion_r738931310
########## File path: solr/core/src/java/org/apache/solr/core/SolrConfig.java ########## @@ -158,6 +166,27 @@ public static SolrConfig readFromResourceLoader(SolrResourceLoader loader, Strin throw new SolrException(ErrorCode.SERVER_ERROR, "Error loading solr config from " + resource, e); } } + private class ResourceProvider implements Function<String, InputStream> { + int zkVersion; + int hash = -1; + InputStream in; + String fileName; + + ResourceProvider(InputStream in) { + this.in = in; + if (in instanceof ZkSolrResourceLoader.ZkByteArrayInputStream) { + ZkSolrResourceLoader.ZkByteArrayInputStream zkin = (ZkSolrResourceLoader.ZkByteArrayInputStream) in; + zkVersion = zkin.getStat().getVersion(); + hash = Objects.hash(zkVersion, overlay.getZnodeVersion()); + this.fileName = zkin.fileName; + } + } + + @Override + public InputStream apply(String s) { + return in; + } Review comment: it's used in another place `XmlConfigFile.java` ln 89 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org