1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Don't fsync on V2 registry push tempfile creation

Signed-off-by: Burke Libbey <burke.libbey@shopify.com>
This commit is contained in:
Burke Libbey 2015-05-07 14:42:17 -04:00
parent 236dbc2e59
commit ec66daebc2
No known key found for this signature in database
GPG key ID: E893DEF914F22410

View file

@ -254,9 +254,6 @@ func bufferToFile(f *os.File, src io.Reader) (int64, digest.Digest, error) {
if err != nil { if err != nil {
return 0, "", err return 0, "", err
} }
if err = f.Sync(); err != nil {
return 0, "", err
}
n, err := f.Seek(0, os.SEEK_CUR) n, err := f.Seek(0, os.SEEK_CUR)
if err != nil { if err != nil {
return 0, "", err return 0, "", err