mirror of https://github.com/apache/lucene.git
SOLR-597: SolrServlet no longer "caches" SolrCore. This was causing problems in Resin, and could potentially cause problems for customized usages of SolrServlet.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@667190 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f0cc46ad7
commit
f690d9facf
|
@ -426,6 +426,10 @@ Bug Fixes
|
|||
|
||||
34. SOLR-590: Limitation in pgrep on Linux platform breaks script-utils fixUser. (Hannes Schmidt via billa)
|
||||
|
||||
35. SOLR-597: SolrServlet no longer "caches" SolrCore. This was causing
|
||||
problems in Resin, and could potentially cause problems for customized
|
||||
usages of SolrServlet.
|
||||
|
||||
Other Changes
|
||||
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
|
||||
build scripts to make two jars: apache-solr-1.3.jar and
|
||||
|
|
|
@ -39,11 +39,11 @@ import org.apache.solr.request.SolrRequestHandler;
|
|||
public class SolrServlet extends HttpServlet {
|
||||
|
||||
final Logger log = Logger.getLogger(SolrServlet.class.getName());
|
||||
SolrCore core;
|
||||
|
||||
public void init() throws ServletException {
|
||||
log.info("SolrServlet.init()");
|
||||
core = SolrCore.getSolrCore();
|
||||
// we deliberately do not initialize a SolrCore because of SOLR-597
|
||||
// https://issues.apache.org/jira/browse/SOLR-597
|
||||
log.info("SolrServlet.init() done");
|
||||
}
|
||||
|
||||
|
@ -52,6 +52,7 @@ public class SolrServlet extends HttpServlet {
|
|||
}
|
||||
|
||||
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
final SolrCore core = SolrCore.getSolrCore();
|
||||
SolrServletRequest solrReq = new SolrServletRequest(core, request);;
|
||||
SolrQueryResponse solrRsp = new SolrQueryResponse();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue