SOLR-5477: Fix URL scheme modification from an earlier commit for SOLR-5477.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1577801 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anshum Gupta 2014-03-15 08:09:32 +00:00
parent e2a22b568f
commit e3ebe4b98a
1 changed files with 0 additions and 2 deletions

View File

@ -1827,7 +1827,6 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
params.set(CoreAdminParams.SHARD, sliceName); params.set(CoreAdminParams.SHARD, sliceName);
params.set(ZkStateReader.NUM_SHARDS_PROP, numSlices); params.set(ZkStateReader.NUM_SHARDS_PROP, numSlices);
String replica = zkStateReader.getBaseUrlForNodeName(nodeName); String replica = zkStateReader.getBaseUrlForNodeName(nodeName);
if (replica.startsWith("http://")) replica = replica.substring(7);
setupAsyncRequest(async, requestMap, params, nodeName); setupAsyncRequest(async, requestMap, params, nodeName);
@ -2139,7 +2138,6 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
params.set("qt", adminPath); params.set("qt", adminPath);
sreq.purpose = 1; sreq.purpose = 1;
String replica = zkStateReader.getBaseUrlForNodeName(nodeName); String replica = zkStateReader.getBaseUrlForNodeName(nodeName);
if (replica.startsWith("http://")) replica = replica.substring(7);
sreq.shards = new String[] {replica}; sreq.shards = new String[] {replica};
sreq.actualShards = sreq.shards; sreq.actualShards = sreq.shards;
sreq.params = params; sreq.params = params;