From 5113299cb6d6b31858ecd6344c4c049e086bdd7c Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Fri, 17 Nov 2017 16:25:03 -0800 Subject: [PATCH] content/local: don't open file with sync After running into performance issues when sending in certain kinds of content, synchronous writes for content have been removed. Content is still synced on commit, so this shouldn't be necessary. Signed-off-by: Stephen J Day --- content/local/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/local/store.go b/content/local/store.go index 1c8156862..e449bad5e 100644 --- a/content/local/store.go +++ b/content/local/store.go @@ -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 { return nil, errors.Wrap(err, "failed to open data file") }