Skip to content

Apache Lucene open-source search software

LUCENE-6909: remove unnecessary synchronized keyword

Michael McCandlessbc7215b5f4dc
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 620dbc4ed52..89165232ecd 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -232,6 +232,10 @@ Optimizations
be fully read from disk if the supplied StoredFieldVisitor doesn't want it.
So put your largest text field value last to benefit. (David Smiley)
+* LUCENE-6909: Remove unnecessary synchronized from
+ FacetsConfig.getDimConfig for better concurrency (Sanne Grinovero
+ via Mike McCandless)
+
Bug Fixes
* LUCENE-6817: ComplexPhraseQueryParser.ComplexPhraseQuery does not display
diff --git a/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java b/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java
index be7d4b251ac..6b18afb410b 100644
--- a/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java
+++ b/lucene/facet/src/java/org/apache/lucene/facet/FacetsConfig.java
@@ -111,7 +111,7 @@ public class FacetsConfig {
}
/** Get the current configuration for a dimension. */
- public synchronized DimConfig getDimConfig(String dimName) {
+ public DimConfig getDimConfig(String dimName) {
DimConfig ft = fieldTypes.get(dimName);
if (ft == null) {
ft = getDefaultDimConfig();