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/13 11:06:42 UTC

[solr] branch jira/solr-16640 updated: renamed fields

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

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


The following commit(s) were added to refs/heads/jira/solr-16640 by this push:
     new 12b1590f10a renamed fields
12b1590f10a is described below

commit 12b1590f10a4254003bf72b744c893a83ec1fd02
Author: Noble Paul <no...@gmail.com>
AuthorDate: Thu Oct 13 22:06:30 2022 +1100

    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);
   }
 
   /**