Skip to content

Commit

Permalink
Fix synchronization in ByteSizeCachingDirectory (elastic#52512)
Browse files Browse the repository at this point in the history
One particular code place was synchronizing on the wrong object.
  • Loading branch information
ywelsch authored and sbourke committed Feb 19, 2020
1 parent b62f9c0 commit ff4f02d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void close() throws IOException {
try {
super.close();
} finally {
synchronized (this) {
synchronized (ByteSizeCachingDirectory.this) {
numOpenOutputs--;
modCount++;
}
Expand Down

0 comments on commit ff4f02d

Please sign in to comment.