Merge pull request #1784 from stevvooe/remove-sync-write

content/local: don't open file with sync
This commit is contained in:
Kenfe-Mickaël Laventure 2017-11-17 17:55:20 -08:00 committed by GitHub
commit 9649a428e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -499,7 +499,7 @@ func (s *store) writer(ctx context.Context, ref string, total int64, expected di
} }
} }
fp, err := os.OpenFile(data, os.O_WRONLY|os.O_CREATE|os.O_SYNC, 0666) fp, err := os.OpenFile(data, os.O_WRONLY|os.O_CREATE, 0666)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "failed to open data file") return nil, errors.Wrap(err, "failed to open data file")
} }