HADOOP-10809. SyncableDataOutputStream must implement sync method on branch-2.
This commit is contained in:
parent
66808e6aac
commit
5c32c4b2e4
@ -36,6 +36,12 @@ public SyncableDataOutputStream(OutputStream out) {
|
||||
super(out);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void sync() throws IOException {
|
||||
hflush();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hflush() throws IOException {
|
||||
if (out instanceof Syncable) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user