lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r1715317 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/servlet/HttpSolrCall.java
Date Fri, 20 Nov 2015 03:42:27 GMT
Author: varun
Date: Fri Nov 20 03:42:26 2015
New Revision: 1715317

URL: http://svn.apache.org/viewvc?rev=1715317&view=rev
Log:
SOLR-8315: Removed default core checks in the dispatch filter since we don't have a default
core anymore

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1715317&r1=1715316&r2=1715317&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Fri Nov 20 03:42:26 2015
@@ -540,6 +540,9 @@ Other Changes
 
 * SOLR-8298: small preferLocalShards implementation refactor (Christine Poerschke)
 
+* SOLR-8315: Removed default core checks in the dispatch filter since we don't have a default
+  core anymore (Varun Thacker)
+
 ==================  5.3.1 ==================
 
 Bug Fixes

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java?rev=1715317&r1=1715316&r2=1715317&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java Fri Nov
20 03:42:26 2015
@@ -279,11 +279,6 @@ public class HttpSolrCall {
       // if we couldn't find it locally, look on other nodes
       extractRemotePath(corename, origCorename, idx);
       if (action != null) return;
-
-      // try the default core
-      if (core == null) {
-        core = cores.getCore("");
-      }
     }
 
     // With a valid core...
@@ -615,11 +610,7 @@ public class HttpSolrCall {
       } else {
         solrResp.setException(new RuntimeException(ex));
       }
-      if (core == null) {
-        localCore = cores.getCore(""); // default core
-      } else {
-        localCore = core;
-      }
+      localCore = core;
       if (solrReq == null) {
         final SolrParams solrParams;
         if (req != null) {



Mime
View raw message