Skip to content

Commit

Permalink
tweak value log size, enough to fit the markset
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 23, 2021
1 parent 7ae96bf commit 899529d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blockstore/splitstore/markset_badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ 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.ValueLogFileSize = 10 << 30
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 899529d

Please sign in to comment.