Browse Source

Remove unnecessary flush calls from LockFile

Change-Id: I144af9db4714acabd796880be73bd50d84b92efe
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
stable-0.10
Shawn O. Pearce 14 years ago
parent
commit
2f6e79307d
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java

6
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java

@ -304,15 +304,9 @@ public class LockFile {
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…
Cancel
Save