Skip to content

Commit

Permalink
HDFS-16551. CryptoInputStream#close() should be syncronized
Browse files Browse the repository at this point in the history
  • Loading branch information
prasad-acit committed Apr 21, 2022
1 parent 7c66304 commit 5f4f85a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ private void resetStreamOffset(long offset) throws IOException {
}

@Override
public void close() throws IOException {
public synchronized void close() throws IOException {
if (closed) {
return;
}
Expand Down

0 comments on commit 5f4f85a

Please sign in to comment.