HADOOP-10809. SyncableDataOutputStream must implement sync method on branch-2.

This commit is contained in:
cnauroth 2014-12-17 14:52:14 -08:00
parent 66808e6aac
commit 5c32c4b2e4
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,12 @@ public class SyncableDataOutputStream extends DataOutputStream implements Syncab
super(out);
}
@Override
@Deprecated
public void sync() throws IOException {
hflush();
}
@Override
public void hflush() throws IOException {
if (out instanceof Syncable) {