SOLR-7955: making it easy to commit to branch_6x

This commit is contained in:
Noble Paul 2017-02-02 18:15:35 +10:30
parent e200b8a2a4
commit 3e44928f49
1 changed files with 2 additions and 2 deletions

View File

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