HDFS-16551. CryptoInputStream#close() should be syncronized (#4227)
This commit is contained in:
parent
0965822ae1
commit
5f259ef7fd
|
@ -311,7 +311,7 @@ public class CryptoInputStream extends FilterInputStream implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
public synchronized void close() throws IOException {
|
||||
if (closed) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue