SOLR-14702: doFetch reads legacy parameters too

This commit is contained in:
Tomas Fernandez Lobbe 2020-08-05 11:35:04 -07:00
parent 7110118ad4
commit 6752111be8
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {