HADOOP-7937. Forward port SequenceFile#syncFs and friends from Hadoop 1.x.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1228291 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
750c5d881c
commit
a878bea3fe
@ -983,6 +983,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
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user