SOLR-6169: Properly remove deprecated CoreAdminHandler handleAlias action

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1602825 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alan Woodward 2014-06-16 09:17:23 +00:00
parent a99904a2bd
commit 8dc0acca45
2 changed files with 2 additions and 22 deletions

View File

@ -87,6 +87,8 @@ Other Changes
* SOLR-6015: Better way to handle managed synonyms when ignoreCase=true
(Timothy Potter)
* SOLR-6169: Properly remove CoreAdminHandler handleAlias action (Alan Woodward)
================== 4.9.0 ==================
Versions of Major Components

View File

@ -624,28 +624,6 @@ public class CoreAdminHandler extends RequestHandlerBase {
}
/**
* Handle "ALIAS" action
*/
@Deprecated
protected void handleAliasAction(SolrQueryRequest req, SolrQueryResponse rsp) {
SolrParams params = req.getParams();
String name = params.get(CoreAdminParams.OTHER);
String cname = params.get(CoreAdminParams.CORE);
boolean doPersist = false;
if (cname.equals(name)) return;
SolrCore core = coreContainer.getCore(cname);
if (core != null) {
doPersist = coreContainer.isPersistent();
coreContainer.register(name, core, false);
// no core.close() since each entry in the cores map should increase the ref
}
return;
}
/**
* Handle "UNLOAD" Action
*/