From 3e44928f490c34666107e9bd6393020be160865f Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Thu, 2 Feb 2017 18:15:35 +1030 Subject: [PATCH] SOLR-7955: making it easy to commit to branch_6x --- solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java index 521c7bb1adf..ef0eb13329b 100644 --- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java +++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java @@ -303,7 +303,7 @@ public class HttpSolrCall { extractRemotePath(corename, origCorename, idx); if (action != null) return; //core is not available locally or remotely - autoCreateSystemColl(); + autoCreateSystemColl(corename); if(action != null) return; } @@ -340,7 +340,7 @@ public class HttpSolrCall { action = PASSTHROUGH; } - protected void autoCreateSystemColl() throws Exception { + protected void autoCreateSystemColl(String corename) throws Exception { if (SYSTEM_COLL.equals(corename) && "POST".equals(req.getMethod()) && !cores.getZkController().getClusterState().hasCollection(SYSTEM_COLL)) { log.info("Going to auto-create .system collection"); SolrQueryResponse rsp = new SolrQueryResponse();