You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/09/26 17:26:24 UTC

lucene-solr:branch_6x: SOLR-9557: optimize splitsmart

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 3f35cadd4 -> 36cd90929


SOLR-9557: optimize splitsmart


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/36cd9092
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/36cd9092
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/36cd9092

Branch: refs/heads/branch_6x
Commit: 36cd9092922b8d03797dfcbf8bbff6efc9037f51
Parents: 3f35cad
Author: Noble Paul <no...@apache.org>
Authored: Mon Sep 26 22:56:13 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Mon Sep 26 22:56:13 2016 +0530

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/36cd9092/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java
index 9b053c4..638e30e 100644
--- a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java
+++ b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java
@@ -183,7 +183,8 @@ public class SolrPluginUtils {
   private static SolrParams applyParamSet(RequestParams requestParams,
                                           SolrParams defaults, String paramSets, String type) {
     if (paramSets == null) return defaults;
-    for (String name : StrUtils.splitSmart(paramSets, ',')) {
+    List<String> paramSetList = paramSets.indexOf(',') == -1 ? singletonList(paramSets) : StrUtils.splitSmart(paramSets, ',');
+    for (String name : paramSetList) {
       RequestParams.VersionedParams params = requestParams.getParams(name, type);
       if (params == null) return defaults;
       if (type.equals(DEFAULTS)) {