Skip to content

Commit

Permalink
Don't fsync on V2 registry push tempfile creation
Browse files Browse the repository at this point in the history
Signed-off-by: Burke Libbey <[email protected]>
  • Loading branch information
burke committed May 7, 2015
1 parent 236dbc2 commit ec66dae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ func bufferToFile(f *os.File, src io.Reader) (int64, digest.Digest, error) {
if err != nil {
return 0, "", err
}
if err = f.Sync(); err != nil {
return 0, "", err
}
n, err := f.Seek(0, os.SEEK_CUR)
if err != nil {
return 0, "", err
Expand Down

0 comments on commit ec66dae

Please sign in to comment.