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>
This commit is contained in:
parent
89cba2cc7b
commit
4e361e2ab4
1 changed files with 0 additions and 1 deletions
|
@ -12,7 +12,6 @@ import (
|
||||||
func OpenDB(p string, ro bool) (*bbolt.DB, error) {
|
func OpenDB(p string, ro bool) (*bbolt.DB, error) {
|
||||||
return bbolt.Open(filepath.Join(p, dbName), os.ModePerm, &bbolt.Options{
|
return bbolt.Open(filepath.Join(p, dbName), os.ModePerm, &bbolt.Options{
|
||||||
NoFreelistSync: true,
|
NoFreelistSync: true,
|
||||||
NoSync: true,
|
|
||||||
ReadOnly: ro,
|
ReadOnly: ro,
|
||||||
Timeout: 100 * time.Millisecond,
|
Timeout: 100 * time.Millisecond,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue