add missing sync

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1220383 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-12-18 12:37:15 +00:00
parent 1ff2096aef
commit 8472b04326
1 changed files with 1 additions and 1 deletions

View File

@ -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);