Skip to content

Commit

Permalink
tweak badger options
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 23, 2021
1 parent 7ae96bf commit 0793712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blockstore/splitstore/markset_badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ func (e *BadgerMarkSetEnv) Create(name string, sizeHint int64) (MarkSet, error)

opts := badger.DefaultOptions(path)
opts.SyncWrites = false
opts.CompactL0OnClose = false
opts.Compression = options.None
opts.TableLoadingMode = options.FileIO
opts.ValueLogLoadingMode = options.FileIO
opts.Logger = &badgerLogger{
SugaredLogger: log.Desugar().WithOptions(zap.AddCallerSkip(1)).Sugar(),
skip2: log.Desugar().WithOptions(zap.AddCallerSkip(2)).Sugar(),
Expand Down

0 comments on commit 0793712

Please sign in to comment.