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

[solr] 01/01: renamed fields

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

ishan pushed a commit to branch jira/solr-16640
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 23651853ccc9c22328888313044e2a2866158ba8
Author: Ishan Chattopadhyaya <is...@apache.org>
AuthorDate: Tue Oct 25 10:46:34 2022 +0530

    renamed fields
---
 .../solrj/src/java/org/apache/solr/common/cloud/ClusterState.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java
index 41d67fb26b0..a29e8582cca 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java
@@ -95,13 +95,13 @@ public class ClusterState implements JSONWriter.Writable {
    * @return the updated cluster state which preserves the current live nodes
    */
   public ClusterState copyWith(String collectionName, DocCollection collection) {
-    LinkedHashMap<String, CollectionRef> copyCollectionStates = new LinkedHashMap<>(collectionStates);
+    LinkedHashMap<String, CollectionRef> collections = new LinkedHashMap<>(collectionStates);
     if (collection == null) {
-      copyCollectionStates.remove(collectionName);
+      collections.remove(collectionName);
     } else {
-      copyCollectionStates.put(collectionName, new CollectionRef(collection));
+      collections.put(collectionName, new CollectionRef(collection));
     }
-    return new ClusterState(copyCollectionStates, liveNodes);
+    return new ClusterState(collections, liveNodes);
   }
 
   /**