Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

add missing sync

Michael McCandless8472b04326f5
diff --git a/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java b/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java
index d0af9aaaf93..471dfab8283 100644
--- a/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java
+++ b/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java
@@ -228,7 +228,7 @@ public class NRTCachingDirectory extends Directory {
}
}
- public IndexInputSlicer createSlicer(final String name, final IOContext context) throws IOException {
+ public synchronized IndexInputSlicer createSlicer(final String name, final IOContext context) throws IOException {
ensureOpen();
if (VERBOSE) {
System.out.println("nrtdir.openInput name=" + name);