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:53 UTC

[solr] branch jira/solr-16640 created (now 23651853ccc)

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

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


      at 23651853ccc renamed fields

This branch includes the following new commits:

     new 23651853ccc renamed fields

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[solr] 01/01: renamed fields

Posted by is...@apache.org.
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);
   }
 
   /**