From 4e361e2ab41602e369edd4feb1dafad99269664c Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 15 Aug 2022 14:59:01 +0300 Subject: [PATCH] [#1647] writecache: Open DB in sync mode Close #1647. Initially, `Sync: false` was provided because we can already lose objects cached in memory. However, future changes in writecache will remove inmemory cache and speed up it via other means. Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/writecache/util.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/local_object_storage/writecache/util.go b/pkg/local_object_storage/writecache/util.go index 26e24194e..bc6da4aa8 100644 --- a/pkg/local_object_storage/writecache/util.go +++ b/pkg/local_object_storage/writecache/util.go @@ -12,7 +12,6 @@ import ( func OpenDB(p string, ro bool) (*bbolt.DB, error) { return bbolt.Open(filepath.Join(p, dbName), os.ModePerm, &bbolt.Options{ NoFreelistSync: true, - NoSync: true, ReadOnly: ro, Timeout: 100 * time.Millisecond, })