mirror of https://github.com/apache/lucene.git
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:
parent
bf05e85523
commit
c6d9ef4c9f
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue