You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2021/01/21 21:33:05 UTC
[lucene-solr] 03/05: @1273 Remove exploratory fix that was not the
love.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 26e2cf7a5e2f225eec411146a1ee62d632fdf3eb
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Jan 21 10:47:03 2021 -0600
@1273 Remove exploratory fix that was not the love.
---
solr/core/src/java/org/apache/solr/core/SolrCore.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/core/SolrCore.java b/solr/core/src/java/org/apache/solr/core/SolrCore.java
index e363319..8d06233 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrCore.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrCore.java
@@ -717,12 +717,6 @@ public final class SolrCore implements SolrInfoBean, Closeable {
if (coreContainer.isShutDown() || isClosed() || closing) {
throw new AlreadyClosedException();
}
- ReentrantLock schemaLock = null;
- if (schema instanceof ManagedIndexSchema) {
- schemaLock = ((ManagedIndexSchema) schema).getSchemaLock();
- schemaLock.lock();
- }
-
// only one reload at a time
ReentrantLock lock = getUpdateHandler().getSolrCoreState().getReloadLock();
boolean locked = lock.tryLock();
@@ -808,9 +802,6 @@ public final class SolrCore implements SolrInfoBean, Closeable {
if (lock != null && lock.isHeldByCurrentThread()) {
lock.unlock();
}
- if (schemaLock != null && schemaLock.isHeldByCurrentThread()) {
- schemaLock.unlock();
- }
}
}