You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/12/18 13:37:15 UTC

svn commit: r1220383 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java

Author: mikemccand
Date: Sun Dec 18 12:37:15 2011
New Revision: 1220383

URL: http://svn.apache.org/viewvc?rev=1220383&view=rev
Log:
add missing sync

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java?rev=1220383&r1=1220382&r2=1220383&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/store/NRTCachingDirectory.java Sun Dec 18 12:37:15 2011
@@ -228,7 +228,7 @@ public class NRTCachingDirectory extends
     }
   }
 
-  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);