Fix synchronization in ByteSizeCachingDirectory (#52512)

One particular code place was synchronizing on the wrong object.
This commit is contained in:
Yannick Welsch 2020-02-19 16:07:15 +01:00
parent 7bbe5c8464
commit 3afb5ca133
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ final class ByteSizeCachingDirectory extends FilterDirectory {
try {
super.close();
} finally {
synchronized (this) {
synchronized (ByteSizeCachingDirectory.this) {
numOpenOutputs--;
modCount++;
}