Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16451: removed unused method

Noble Paulc54ed38cb977
diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
index 85414e8fad4..573cf45b6c5 100644
--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java
@@ -1859,22 +1859,6 @@ public class ZkStateReader implements SolrCloseable {
}
}
- private DocCollection updatePerReplicaState(DocCollection c) {
- if (c == null || !c.isPerReplicaState()) return c;
- PerReplicaStates current = c.getPerReplicaStates();
- PerReplicaStates newPrs = PerReplicaStatesFetcher.fetch(c.getZNode(), zkClient, current);
- if (newPrs != current) {
- if (log.isDebugEnabled()) {
- log.debug("update for a fresh per-replica-state {}", c.getName());
- }
- DocCollection modifiedColl = c.copyWith(newPrs);
- collectionWatches.updateDocCollection(c.getName(), modifiedColl);
- return modifiedColl;
- } else {
- return c;
- }
- }
-
/**
* Block until a CollectionStatePredicate returns true, or the wait times out
*