You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2022/10/18 05:54:04 UTC

[solr] branch branch_9x updated: SOLR-16451: removed unused method

This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 65f05ef768a SOLR-16451: removed unused method
65f05ef768a is described below

commit 65f05ef768a4a64142bf1b7b8eddcc2e0f923b29
Author: Noble Paul <no...@gmail.com>
AuthorDate: Tue Oct 18 16:53:12 2022 +1100

    SOLR-16451: removed unused method
---
 .../java/org/apache/solr/common/cloud/ZkStateReader.java | 16 ----------------
 1 file changed, 16 deletions(-)

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
    *