added missing sync to MockDirectoryWrapper

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1138450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-06-22 13:08:30 +00:00
parent bf05e85523
commit c6d9ef4c9f
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ public class MockDirectoryWrapper extends Directory {
} }
} }
void addFileHandle(Closeable c, String name, boolean input) { synchronized void addFileHandle(Closeable c, String name, boolean input) {
Integer v = openFiles.get(name); Integer v = openFiles.get(name);
if (v != null) { if (v != null) {
v = Integer.valueOf(v.intValue()+1); v = Integer.valueOf(v.intValue()+1);