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 {
|
||||
super.close();
|
||||
} finally {
|
||||
synchronized (this) {
|
||||
synchronized (ByteSizeCachingDirectory.this) {
|
||||
numOpenOutputs--;
|
||||
modCount++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue