Remove unnecessary flush calls from LockFile
Change-Id: I144af9db4714acabd796880be73bd50d84b92efe Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
ed5fe8af9a
commit
2f6e79307d
|
@ -304,15 +304,9 @@ public void write(final int b) throws IOException {
|
|||
out.write(b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
out.flush();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
out.flush();
|
||||
if (fsync)
|
||||
os.getChannel().force(true);
|
||||
out.close();
|
||||
|
|
Loading…
Reference in New Issue