forked from TrueCloudLab/frostfs-node
[#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 <evgeniy@morphbits.ru>support/v0.34
parent
89cba2cc7b
commit
4e361e2ab4
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue