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 2020/09/05 18:09:17 UTC
[lucene-solr] branch reference_impl_dev updated: @747 Only one init
at a time.
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
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 7247de2 @747 Only one init at a time.
7247de2 is described below
commit 7247de27d5ff0fd67c448122fd2fdcf4d2b74ed1
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sat Sep 5 13:07:37 2020 -0500
@747 Only one init at a time.
---
solr/core/src/java/org/apache/solr/update/UpdateLog.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/update/UpdateLog.java b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
index 441c3a0..7b5a73a 100644
--- a/solr/core/src/java/org/apache/solr/update/UpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
@@ -364,7 +364,7 @@ public class UpdateLog implements PluginInfoInitialized, SolrMetricProducer {
* This must be called when a new log is created, or
* for an existing log whenever the core or update handler changes.
*/
- public void init(UpdateHandler uhandler, SolrCore core) {
+ public synchronized void init(UpdateHandler uhandler, SolrCore core) {
if (dataDir != null) {
ObjectReleaseTracker.release(this);
}