Fix synchronization in ByteSizeCachingDirectory (#52512)
One particular code place was synchronizing on the wrong object.
This commit is contained in:
parent
7bbe5c8464
commit
3afb5ca133
|
@ -161,7 +161,7 @@ final class ByteSizeCachingDirectory extends FilterDirectory {
|
||||||
try {
|
try {
|
||||||
super.close();
|
super.close();
|
||||||
} finally {
|
} finally {
|
||||||
synchronized (this) {
|
synchronized (ByteSizeCachingDirectory.this) {
|
||||||
numOpenOutputs--;
|
numOpenOutputs--;
|
||||||
modCount++;
|
modCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue