mirror of https://github.com/apache/lucene.git
SOLR-14702: doFetch reads legacy parameters too
This commit is contained in:
parent
7110118ad4
commit
6752111be8
|
@ -436,7 +436,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
|
||||||
private volatile IndexFetcher currentIndexFetcher;
|
private volatile IndexFetcher currentIndexFetcher;
|
||||||
|
|
||||||
public IndexFetchResult doFetch(SolrParams solrParams, boolean forceReplication) {
|
public IndexFetchResult doFetch(SolrParams solrParams, boolean forceReplication) {
|
||||||
String leaderUrl = solrParams == null ? null : solrParams.get(LEADER_URL);
|
String leaderUrl = solrParams == null ? null : ReplicationHandler.getObjectWithBackwardCompatibility(solrParams, LEADER_URL, LEGACY_LEADER_URL, null);
|
||||||
if (!indexFetchLock.tryLock())
|
if (!indexFetchLock.tryLock())
|
||||||
return IndexFetchResult.LOCK_OBTAIN_FAILED;
|
return IndexFetchResult.LOCK_OBTAIN_FAILED;
|
||||||
if (core.getCoreContainer().isShutDown()) {
|
if (core.getCoreContainer().isShutDown()) {
|
||||||
|
|
Loading…
Reference in New Issue