Merge pull request #13059 from burke/no-fsync-on-temp-archive
Remove fsync in archive.NewTempArchive
This commit is contained in:
commit
c754d1e989
1 changed files with 0 additions and 3 deletions
|
@ -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