Merge -r 1228290:1228291 from trunk to branch-0.23. Fixes: HADOOP-7937

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1228292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2012-01-06 17:26:42 +00:00
parent 6455f96ec6
commit a45cc8a74c
2 changed files with 10 additions and 0 deletions

View File

@ -867,6 +867,9 @@ Release 0.22.1 - Unreleased
BUG FIXES
HADOOP-7937. Forward port SequenceFile#syncFs and friends from Hadoop 1.x.
(tomwhite)
Release 0.22.0 - 2011-11-29
INCOMPATIBLE CHANGES

View File

@ -1193,6 +1193,13 @@ public void sync() throws IOException {
}
}
/** flush all currently written data to the file system */
public void syncFs() throws IOException {
if (out != null) {
out.sync(); // flush contents to file system
}
}
/** Returns the configuration of this file. */
Configuration getConf() { return conf; }