mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #13059 from burke/no-fsync-on-temp-archive
Remove fsync in archive.NewTempArchive
This commit is contained in:
commit
237bd23af8
2 changed files with 0 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -793,9 +793,6 @@ func NewTempArchive(src Archive, dir string) (*TempArchive, error) {
|
||||||
if _, err := io.Copy(f, src); err != nil {
|
if _, err := io.Copy(f, src); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if err = f.Sync(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if _, err := f.Seek(0, 0); err != nil {
|
if _, err := f.Seek(0, 0); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue