lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [35/40] lucene-solr:jira/solr-11285-sim: SOLR-11642: remove synchronization on OCMH
Date Fri, 17 Nov 2017 08:33:56 GMT
SOLR-11642: remove synchronization on OCMH


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/75825d24
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/75825d24
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/75825d24

Branch: refs/heads/jira/solr-11285-sim
Commit: 75825d240f490fc87c03e1b04df436a5d1c7d144
Parents: a371cab
Author: Noble Paul <noble@apache.org>
Authored: Thu Nov 16 08:50:56 2017 +1030
Committer: Noble Paul <noble@apache.org>
Committed: Thu Nov 16 08:50:56 2017 +1030

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/cloud/Assign.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/75825d24/solr/core/src/java/org/apache/solr/cloud/Assign.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/Assign.java b/solr/core/src/java/org/apache/solr/cloud/Assign.java
index c7bd577..1b48881 100644
--- a/solr/core/src/java/org/apache/solr/cloud/Assign.java
+++ b/solr/core/src/java/org/apache/solr/cloud/Assign.java
@@ -293,7 +293,7 @@ public class Assign {
     } else  {
       if (message.getStr(CREATE_NODE_SET) == null)
         nodeList = Collections.emptyList();// unless explicitly specified do not pass node
list to Policy
-      synchronized (ocmh) {
+      synchronized (PolicyHelper.class) {
         PolicyHelper.SESSION_REF.set(PolicyHelper.getPolicySessionRef(ocmh.overseer.getSolrCloudManager()));
         try {
           return getPositionsUsingPolicy(collectionName,


Mime
View raw message