Re-eanble compact on close
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
631b8b5802
commit
d3d4612575
@ -27,8 +27,8 @@ var fsDatastores = map[string]func(path string) (datastore.Batching, error){
|
||||
|
||||
func badgerDs(path string) (datastore.Batching, error) {
|
||||
opts := badger.DefaultOptions
|
||||
opts.Options = dgbadger.DefaultOptions("").WithCompactL0OnClose(false).
|
||||
WithTruncate(true).WithValueThreshold(1 << 10)
|
||||
opts.Options = dgbadger.DefaultOptions("").WithTruncate(true).
|
||||
WithValueThreshold(1 << 10)
|
||||
|
||||
return badger.NewDatastore(path, &opts)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user